class Lono::Sets::List
Public Class Methods
new(options={})
click to toggle source
# File lib/lono/sets/list.rb, line 7 def initialize(options={}) @options = options end
Public Instance Methods
run()
click to toggle source
# File lib/lono/sets/list.rb, line 11 def run table = Text::Table.new table.head = ["Stack Set Name", "Status"] summaries = stack_sets_summaries summaries.each do |s| table.rows << [s.stack_set_name, s.status] end puts table end
Private Instance Methods
stack_sets_summaries()
click to toggle source
# File lib/lono/sets/list.rb, line 22 def stack_sets_summaries next_token, summaries = :start, [] while next_token o = {} o[:next_token] = next_token unless next_token == :start or next_token.nil? o[:status] = @options[:status].upcase if @options[:status] && @options[:status] != "all" resp = cfn.list_stack_sets(o) next_token = resp.next_token summaries += resp.summaries end summaries end