Guest User

Untitled

a guest
Feb 3rd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Current method:
  2. File '/path/to/file' do
  3. mode '777'
  4. owner 'root'
  5. group 'root'
  6. end
  7.  
  8. Lets say I have a struct that contains mode,owner and root in it.. Call perms
  9. perms = Perms.new('777','root','root')
  10.  
  11. I am looking for a way to do the following and have it be the same as the above
  12. File '/path/to/file' do
  13. magic_method? perms
  14. end
Advertisement
Add Comment
Please, Sign In to add comment