Class: Panoramix::Tasks::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/panoramix/tasks/actions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_name, silent, order_class) ⇒ Action

Returns a new instance of Action.



10
11
12
13
14
15
# File 'lib/panoramix/tasks/actions.rb', line 10

def initialize(action_name, silent, order_class)
  @name = action_name
  @silent = silent
  @order_class = order_class
  @tasks = []
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/panoramix/tasks/actions.rb', line 5

def name
  @name
end

#order_classObject (readonly)

Returns the value of attribute order_class.



7
8
9
# File 'lib/panoramix/tasks/actions.rb', line 7

def order_class
  @order_class
end

#silentObject (readonly)

Returns the value of attribute silent.



6
7
8
# File 'lib/panoramix/tasks/actions.rb', line 6

def silent
  @silent
end

#tasksObject (readonly)

Returns the value of attribute tasks.



8
9
10
# File 'lib/panoramix/tasks/actions.rb', line 8

def tasks
  @tasks
end

Instance Method Details

#addTask(name, instance_type) ⇒ Object



17
18
19
# File 'lib/panoramix/tasks/actions.rb', line 17

def addTask(name, instance_type)
  @tasks.push Hash[:name => name, :instance_type => instance_type]
end