class KnuckleCluster::Task

Attributes

agent[R]
arn[R]
container_instance_arn[R]
definition[R]
name[R]
task_registry[R]

Public Class Methods

new( arn:, container_instance_arn:, agent:, definition:, name:, task_registry: ) click to toggle source
# File lib/knuckle_cluster/task.rb, line 3
def initialize(
  arn:,
  container_instance_arn:,
  agent:,
  definition:,
  name:,
  task_registry:
)
  @arn = arn
  @container_instance_arn = container_instance_arn
  @agent = agent
  @definition = definition
  @name = name
  @task_registry = task_registry
end

Public Instance Methods

containers() click to toggle source
# File lib/knuckle_cluster/task.rb, line 21
def containers
  task_registry.containers_where(task: self)
end