class MotherBrain::CommandRunner::InvokableComponent
Proxy for invoking components in the DSL
@api private
Attributes
component[R]
environment[R]
job[R]
Public Class Methods
new(job, environment, component)
click to toggle source
@param [Job] job @param [String] environment the environment on which to
eventually invoke a command
@param [Component] component the component we’ll be invoking
# File lib/mb/command_runner.rb, line 220 def initialize(job, environment, component) @job = job @environment = environment @component = component end
Public Instance Methods
invoke(command, *args)
click to toggle source
@param [String] command the command to invoke in the component @param [Array] args additional arguments for the command
# File lib/mb/command_runner.rb, line 228 def invoke(command, *args) component.invoke(job, environment, command, args) end