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