Skip to content

Instantly share code, notes, and snippets.

Created January 10, 2016 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/e9d42188b51398b111e6 to your computer and use it in GitHub Desktop.
Save anonymous/e9d42188b51398b111e6 to your computer and use it in GitHub Desktop.
def directory(path, args=nil)
yield(path, args) if block_given?
end
def owner(path, uid)
end
# Should do the same
directory '/var' do
owner :root
end
# as
owner '/var', :root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment