Method: MotherBrain::Command#invoke

Defined in:
lib/mb/command.rb

#invoke(job, environment, node_filter, *args) ⇒ Object

Run the command on the given environment

Parameters:

  • job (MB::Job)

    a job to update with progress

  • environment (String)

    the environment to invoke the command on

  • node_filter (Array)

    list of nodes to limit the command to

  • args (Array)

    additional arguments to pass to the command

Raises:



69
70
71
# File 'lib/mb/command.rb', line 69

def invoke(job, environment, node_filter, *args)
  CommandRunner.new(job, environment, scope, execute, node_filter, *args)
end