maxkazar/activecrew

View on GitHub
lib/active_crew/concerns/commandable.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ActiveCrew
  module Commandable
    def command(name, options = {}, context = {})
      Backends.enqueue name, invoker, @context.merge(options: options).merge(context)
    end

    def backend
      Backends.default
    end
  end
end