Class: Blender::Task::Salt

Inherits:
Base
  • Object
show all
Defined in:
lib/blender/tasks/salt.rb

Overview

Salt blender task

Defined Under Namespace

Classes: SaltCall

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, metadata = {}) ⇒ Salt

Returns a new instance of Salt.



28
29
30
31
32
# File 'lib/blender/tasks/salt.rb', line 28

def initialize(name,  = {})
  super
  @command = SaltCall.new
  @command.function = name
end

Instance Attribute Details

#commandObject (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