Method: Stackup::Service#stack_names

Defined in:
lib/stackup/service.rb

#stack_namesEnumeration<String>

Returns names of existing stacks.

Returns:

  • (Enumeration<String>)

    names of existing stacks



23
24
25
26
27
28
29
30
31
# File 'lib/stackup/service.rb', line 23

def stack_names
  Enumerator.new do |y|
    cf_client.describe_stacks.each do |response|
      response.stacks.each do |stack|
        y << stack.stack_name
      end
    end
  end
end