Module: Tango::Contexts::Helpers
Instance Method Summary collapse
- #as_user(umask, &block) ⇒ Object
- #in_context(context, &block) ⇒ Object
- #in_directory(directory, &block) ⇒ Object
- #with_umask(umask, &block) ⇒ Object
Instance Method Details
#as_user(umask, &block) ⇒ Object
19 20 21 |
# File 'lib/tango/contexts/helpers.rb', line 19 def as_user(umask, &block) in_context(User.new(umask), &block) end |
#in_context(context, &block) ⇒ Object
7 8 9 |
# File 'lib/tango/contexts/helpers.rb', line 7 def in_context(context, &block) Chain.new.in_context(context, &block) end |