Class: EcsDeployCli::DSL::Cron::Task
- Inherits:
-
Object
- Object
- EcsDeployCli::DSL::Cron::Task
- Includes:
- AutoOptions
- Defined in:
- lib/ecs_deploy_cli/dsl/cron.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #as_definition ⇒ Object
- #container(name, &block) ⇒ Object
-
#initialize(name, config) ⇒ Task
constructor
A new instance of Task.
Methods included from AutoOptions
Constructor Details
#initialize(name, config) ⇒ Task
Returns a new instance of Task.
80 81 82 83 |
# File 'lib/ecs_deploy_cli/dsl/cron.rb', line 80 def initialize(name, config) @name = name @config = config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EcsDeployCli::DSL::AutoOptions
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
78 79 80 |
# File 'lib/ecs_deploy_cli/dsl/cron.rb', line 78 def name @name end |
Instance Method Details
#as_definition ⇒ Object
91 92 93 94 |
# File 'lib/ecs_deploy_cli/dsl/cron.rb', line 91 def as_definition # [{"name"=>"cron", "command"=>["rails", "cron:adalytics"]}] ([:containers] || []).map(&:as_definition) end |