Class: Duple::Config::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/duple/config/task.rb

Overview

Represents a set of commands that can be executed in the source or target environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, command_list) ⇒ Task

Returns a new instance of Task.



8
9
10
11
# File 'lib/duple/config/task.rb', line 8

def initialize(name, command_list)
  @name = name
  @commands = command_list.map { |c| Duple::Config::Command.new(c) }
end

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



7
8
9
# File 'lib/duple/config/task.rb', line 7

def commands
  @commands
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/duple/config/task.rb', line 7

def name
  @name
end