Class: Ufo::CLI::Releases

Inherits:
Base
  • Object
show all
Defined in:
lib/ufo/cli/releases.rb

Instance Attribute Summary

Attributes inherited from Base

#task_definition

Instance Method Summary collapse

Methods inherited from Base

#initialize

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, #cloudformation, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb, #find_stack, #ssm_client, #stack_resources, #status, #task_definition_arns, #waf_client

Constructor Details

This class inherits a constructor from Ufo::CLI::Base

Instance Method Details

#listObject



5
6
7
8
9
10
11
12
# File 'lib/ufo/cli/releases.rb', line 5

def list
  logger.info "Latest task definitions for stack: #{@stack_name}"
  arns = task_definition_arns(@task_definition.name)
  task_definitions = arns.map { |arn| arn.split('/').last }
  task_definitions.each do |name|
    logger.info "    #{name}"
  end
end