mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
Added support for Linux Mint
This commit is contained in:
parent
e23ea50d4b
commit
b0ec3a08ba
23 changed files with 337 additions and 87 deletions
10
puppet/production/lib/puppet/functions/find_group.rb
Normal file
10
puppet/production/lib/puppet/functions/find_group.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Puppet::Functions.create_function(:find_group) do
|
||||
dispatch :find_group do
|
||||
param 'String', :some_path
|
||||
return_type 'String'
|
||||
end
|
||||
|
||||
def find_group(some_path)
|
||||
File.stat(some_path).gid.to_s
|
||||
end
|
||||
end
|
||||
10
puppet/production/lib/puppet/functions/find_owner.rb
Normal file
10
puppet/production/lib/puppet/functions/find_owner.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Puppet::Functions.create_function(:find_owner) do
|
||||
dispatch :find_owner do
|
||||
param 'String', :some_path
|
||||
return_type 'String'
|
||||
end
|
||||
|
||||
def find_owner(some_path)
|
||||
File.stat(some_path).uid.to_s
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue