Class: Blender::Task::Salt
- Inherits:
-
Base
- Object
- Base
- Blender::Task::Salt
- Defined in:
- lib/blender/tasks/salt.rb
Overview
Salt blender task
Defined Under Namespace
Classes: SaltCall
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #arguments(a) ⇒ Object
- #execute(&block) ⇒ Object
- #function(f) ⇒ Object
-
#initialize(name, metadata = {}) ⇒ Salt
constructor
A new instance of Salt.
- #process(&block) ⇒ Object
- #target(t) ⇒ Object
Constructor Details
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
26 27 28 |
# File 'lib/blender/tasks/salt.rb', line 26 def command @command end |
Instance Method Details
#arguments(a) ⇒ Object
42 43 44 |
# File 'lib/blender/tasks/salt.rb', line 42 def arguments(a) @command.arguments = a end |
#execute(&block) ⇒ Object
50 51 52 |
# File 'lib/blender/tasks/salt.rb', line 50 def execute(&block) @command.instance_eval(&block) end |
#function(f) ⇒ Object
38 39 40 |
# File 'lib/blender/tasks/salt.rb', line 38 def function(f) @command.function = f end |
#process(&block) ⇒ Object
46 47 48 |
# File 'lib/blender/tasks/salt.rb', line 46 def process(&block) @command.process = block if block end |
#target(t) ⇒ Object
34 35 36 |
# File 'lib/blender/tasks/salt.rb', line 34 def target(t) @command.target = t end |