Class: MotherBrain::CommandRunner::InvokableComponent Private
- Inherits:
-
Object
- Object
- MotherBrain::CommandRunner::InvokableComponent
- Defined in:
- lib/mb/command_runner.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Proxy for invoking components in the DSL
Instance Attribute Summary collapse
- #component ⇒ Object readonly private
- #environment ⇒ Object readonly private
- #job ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(job, environment, component) ⇒ InvokableComponent
constructor
private
A new instance of InvokableComponent.
- #invoke(command, *args) ⇒ Object private
Constructor Details
#initialize(job, environment, component) ⇒ InvokableComponent
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvokableComponent.
220 221 222 223 224 |
# File 'lib/mb/command_runner.rb', line 220 def initialize(job, environment, component) @job = job @environment = environment @component = component end |
Instance Attribute Details
#component ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
214 215 216 |
# File 'lib/mb/command_runner.rb', line 214 def component @component end |
#environment ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
213 214 215 |
# File 'lib/mb/command_runner.rb', line 213 def environment @environment end |
#job ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
212 213 214 |
# File 'lib/mb/command_runner.rb', line 212 def job @job end |
Instance Method Details
#invoke(command, *args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
228 229 230 |
# File 'lib/mb/command_runner.rb', line 228 def invoke(command, *args) component.invoke(job, environment, command, args) end |