Class: Ufo::Releases

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

Instance Method Summary collapse

Methods inherited from Base

#full_service, #info, #initialize, #no_service_message, #switch_current

Methods included from Stack::Helper

#adjust_stack_name, #cfn, #find_stack, #status

Methods included from Util

#default_cluster, #display_params, #execute, #pretty_time, #settings, #task_definition_arns, #user_params

Methods included from AwsService

#cloudformation, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb

Constructor Details

This class inherits a constructor from Ufo::Base

Instance Method Details

#listObject



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

def list
  puts "Recent task definitions for this service:"
  arns = task_definition_arns(@service)
  task_definitions = arns.map { |arn| arn.split('/').last }
  task_definitions.each do |name|
    puts "  #{name}"
  end
end