Class: Wrapbox::Runner::Ecs::Parameter
- Inherits:
-
Object
- Object
- Wrapbox::Runner::Ecs::Parameter
- Defined in:
- lib/wrapbox/runner/ecs.rb
Instance Attribute Summary collapse
-
#cluster ⇒ Object
readonly
Returns the value of attribute cluster.
-
#environments ⇒ Object
readonly
Returns the value of attribute environments.
-
#execution_retry ⇒ Object
readonly
Returns the value of attribute execution_retry.
-
#launch_retry ⇒ Object
readonly
Returns the value of attribute launch_retry.
-
#launch_timeout ⇒ Object
readonly
Returns the value of attribute launch_timeout.
-
#max_retry_interval ⇒ Object
readonly
Returns the value of attribute max_retry_interval.
-
#retry_interval ⇒ Object
readonly
Returns the value of attribute retry_interval.
-
#retry_interval_multiplier ⇒ Object
readonly
Returns the value of attribute retry_interval_multiplier.
-
#task_role_arn ⇒ Object
readonly
Returns the value of attribute task_role_arn.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(environments: [], task_role_arn: nil, cluster: nil, timeout: 3600 * 24, launch_timeout: 60 * 10, launch_retry: 10, retry_interval: 1, retry_interval_multiplier: 2, max_retry_interval: 120, execution_retry: 0) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(environments: [], task_role_arn: nil, cluster: nil, timeout: 3600 * 24, launch_timeout: 60 * 10, launch_retry: 10, retry_interval: 1, retry_interval_multiplier: 2, max_retry_interval: 120, execution_retry: 0) ⇒ Parameter
Returns a new instance of Parameter.
58 59 60 61 62 63 |
# File 'lib/wrapbox/runner/ecs.rb', line 58 def initialize(environments: [], task_role_arn: nil, cluster: nil, timeout: 3600 * 24, launch_timeout: 60 * 10, launch_retry: 10, retry_interval: 1, retry_interval_multiplier: 2, max_retry_interval: 120, execution_retry: 0) b = binding method(:initialize).parameters.each do |param| instance_variable_set("@#{param[1]}", b.local_variable_get(param[1])) end end |
Instance Attribute Details
#cluster ⇒ Object (readonly)
Returns the value of attribute cluster.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def cluster @cluster end |
#environments ⇒ Object (readonly)
Returns the value of attribute environments.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def environments @environments end |
#execution_retry ⇒ Object (readonly)
Returns the value of attribute execution_retry.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def execution_retry @execution_retry end |
#launch_retry ⇒ Object (readonly)
Returns the value of attribute launch_retry.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def launch_retry @launch_retry end |
#launch_timeout ⇒ Object (readonly)
Returns the value of attribute launch_timeout.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def launch_timeout @launch_timeout end |
#max_retry_interval ⇒ Object (readonly)
Returns the value of attribute max_retry_interval.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def max_retry_interval @max_retry_interval end |
#retry_interval ⇒ Object (readonly)
Returns the value of attribute retry_interval.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def retry_interval @retry_interval end |
#retry_interval_multiplier ⇒ Object (readonly)
Returns the value of attribute retry_interval_multiplier.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def retry_interval_multiplier @retry_interval_multiplier end |
#task_role_arn ⇒ Object (readonly)
Returns the value of attribute task_role_arn.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def task_role_arn @task_role_arn end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
46 47 48 |
# File 'lib/wrapbox/runner/ecs.rb', line 46 def timeout @timeout end |