class Lono::SetInstances::Base
Public Instance Methods
accounts()
click to toggle source
# File lib/lono/set_instances/base.rb, line 17 def accounts @options[:accounts] end
regions()
click to toggle source
# File lib/lono/set_instances/base.rb, line 21 def regions @options[:regions] end
requested()
click to toggle source
Simple structure to help with subtracting logic
- [“112233445566”, “us-west-1”], [“112233445566”, “us-west-1”]
# File lib/lono/set_instances/base.rb, line 5 def requested requested = [] accounts.each do |a| regions.each do |r| item = [a,r] requested << item end end requested.sort.uniq end
stack_instances()
click to toggle source
# File lib/lono/set_instances/base.rb, line 25 def stack_instances resp = cfn.list_stack_instances(stack_set_name: @stack) resp.summaries end