Class: Commander::Command
- Inherits:
-
Object
- Object
- Commander::Command
- Defined in:
- lib/command.rb
Instance Method Summary collapse
Instance Method Details
#local_session_action(&block) ⇒ Object
8 9 10 |
# File 'lib/command.rb', line 8 def local_session_action(&block) session_action true, &block end |
#session_action(force_local = false, &block) ⇒ Object
2 3 4 5 6 |
# File 'lib/command.rb', line 2 def session_action(force_local=false, &block) action do |args, | Escualo::Session.within(, force_local) { |session| block.call(args, , session) } end end |