Class: Wrapbox::Runner::Ecs::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/wrapbox/runner/ecs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clusterObject (readonly)

Returns the value of attribute cluster.



46
47
48
# File 'lib/wrapbox/runner/ecs.rb', line 46

def cluster
  @cluster
end

#environmentsObject (readonly)

Returns the value of attribute environments.



46
47
48
# File 'lib/wrapbox/runner/ecs.rb', line 46

def environments
  @environments
end

#execution_retryObject (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_retryObject (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_timeoutObject (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_intervalObject (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_intervalObject (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_multiplierObject (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_arnObject (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

#timeoutObject (readonly)

Returns the value of attribute timeout.



46
47
48
# File 'lib/wrapbox/runner/ecs.rb', line 46

def timeout
  @timeout
end