Module: ActiveCrew::Commandable
- Included in:
- Base
- Defined in:
- lib/active_crew/concerns/commandable.rb
Instance Method Summary collapse
Instance Method Details
#backend ⇒ Object
7 8 9 |
# File 'lib/active_crew/concerns/commandable.rb', line 7 def backend Backends.default end |
#command(name, options = {}, context = {}) ⇒ Object
3 4 5 |
# File 'lib/active_crew/concerns/commandable.rb', line 3 def command(name, = {}, context = {}) Backends.enqueue name, invoker, @context.merge(options: ).merge(context) end |