Module: HQ::Engine

Defined in:
lib/hq/engine/engine.rb,
lib/hq/engine/rule-error.rb,
lib/hq/engine/engine-script.rb,
lib/hq/engine/unlock-command.rb,
lib/hq/transform/transformer.rb,
lib/hq/engine/libxmlruby-mixin.rb,
lib/hq/engine/register-engine-commands.rb,
lib/hq/engine/subprocess-rule-provider/self.rb,
lib/hq/engine/subprocess-rule-provider/start.rb,
lib/hq/engine/subprocess-rule-provider/session.rb

Defined Under Namespace

Modules: LibXmlRubyMixin Classes: Engine, EngineScript, RuleError, SubProcessRuleProvider, Transformer, UnlockCommand

Class Method Summary collapse

Class Method Details

.register_commands(hq) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/hq/engine/register-engine-commands.rb', line 4

def self.register_commands hq

  hq.register_command \
    "unlock",
    nil,
    "Unlock crashed deployment" \
  do
    require "hq/engine/unlock-command"
    command = HQ::Engine::UnlockCommand.new
    command.hq = hq
    command
  end

end