Module: ActiveCrew::Commandable

Included in:
Base
Defined in:
lib/active_crew/concerns/commandable.rb

Instance Method Summary collapse

Instance Method Details

#backendObject



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, options = {}, context = {})
  Backends.enqueue name, invoker, @context.merge(options: options).merge(context)
end