Class: Ufo::CLI::Base

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Includes:
AwsServices, Ufo::Concerns, Utils::Logging, Utils::Pretty, Utils::Sure
Defined in:
lib/ufo/cli/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::Sure

#sure?

Methods included from Utils::Pretty

#pretty_home, #pretty_path, #pretty_time

Methods included from Utils::Logging

#logger

Methods included from Ufo::Concerns

#build, #deploy, #info, #ps

Methods included from Ufo::Concerns::Names

#names

Methods included from AwsServices

#acm, #applicationautoscaling, #aws_options, #cfn, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb, #s3, #ssm_client, #waf_client

Methods included from AwsServices::Concerns

#find_stack, #find_stack_resources, #stack_resources, #status, #task_definition_arns

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
# File 'lib/ufo/cli/base.rb', line 11

def initialize(options={})
  @options = options
  @task_definition = Ufo::TaskDefinition.new(options)
  @stack_name = names.stack
  @cluster = names.cluster
end

Instance Attribute Details

#task_definitionObject (readonly)

Returns the value of attribute task_definition.



10
11
12
# File 'lib/ufo/cli/base.rb', line 10

def task_definition
  @task_definition
end