Class: Inari::TaskManager::Task
Overview
Represents the definition of a single task.
Instance Attribute Summary collapse
-
#hosts ⇒ Object
readonly
Returns the list of servers that are the target of this task.
-
#name ⇒ Object
readonly
:nodoc:.
-
#options ⇒ Object
readonly
:nodoc:.
-
#taskmanager ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(name, taskmanager, options) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name, taskmanager, options) ⇒ Task
Returns a new instance of Task.
16 17 18 |
# File 'lib/inari/task_manager.rb', line 16 def initialize(name, taskmanager, ) @name, @taskmanager, @options = name, taskmanager, end |
Instance Attribute Details
#hosts ⇒ Object (readonly)
Returns the list of servers that are the target of this task.
14 15 16 |
# File 'lib/inari/task_manager.rb', line 14 def hosts @hosts end |
#name ⇒ Object (readonly)
:nodoc:
14 15 16 |
# File 'lib/inari/task_manager.rb', line 14 def name @name end |
#options ⇒ Object (readonly)
:nodoc:
14 15 16 |
# File 'lib/inari/task_manager.rb', line 14 def @options end |
#taskmanager ⇒ Object (readonly)
:nodoc:
14 15 16 |
# File 'lib/inari/task_manager.rb', line 14 def taskmanager @taskmanager end |