Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Current method:
- File '/path/to/file' do
- mode '777'
- owner 'root'
- group 'root'
- end
- Lets say I have a struct that contains mode,owner and root in it.. Call perms
- perms = Perms.new('777','root','root')
- I am looking for a way to do the following and have it be the same as the above
- File '/path/to/file' do
- magic_method? perms
- end
Advertisement
Add Comment
Please, Sign In to add comment