Class: Eien::Task
- Inherits:
-
Object
- Object
- Eien::Task
- Includes:
- Helpers::TimeHelpers
- Defined in:
- lib/eien/task.rb
Direct Known Subclasses
Apps::CreateTask, Apps::DeleteTask, Apps::ListTask, Apps::SelectTask, Apps::StatusTask, Config::ExportTask, Config::ListTask, Config::UpdateTask, Deploy::ApplyTask, Deploy::GenerateTask, Domains::CreateTask, Domains::DeleteTask, Domains::ListTask, Domains::UpdateTask, InitTask, Processes::CreateTask, Processes::DeleteTask, Processes::ListTask, Processes::UpdateTask, Routes::CreateTask, Routes::DeleteTask, Routes::ListTask, Routes::UpdateTask, Secrets::ExportTask, Secrets::ListTask, Secrets::UpdateTask
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#task_config ⇒ Object
readonly
Returns the value of attribute task_config.
Instance Method Summary collapse
-
#initialize(context, namespace = nil) ⇒ Task
constructor
A new instance of Task.
- #run! ⇒ Object
Methods included from Helpers::TimeHelpers
Constructor Details
#initialize(context, namespace = nil) ⇒ Task
Returns a new instance of Task.
12 13 14 15 16 |
# File 'lib/eien/task.rb', line 12 def initialize(context, namespace = nil) @context = context @namespace = namespace @task_config = TaskConfig.new(context, namespace) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'lib/eien/task.rb', line 7 def context @context end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
7 8 9 |
# File 'lib/eien/task.rb', line 7 def namespace @namespace end |
#task_config ⇒ Object (readonly)
Returns the value of attribute task_config.
7 8 9 |
# File 'lib/eien/task.rb', line 7 def task_config @task_config end |
Instance Method Details
#run! ⇒ Object
18 19 |
# File 'lib/eien/task.rb', line 18 def run! end |