Sha256: 933a28474ee9affca73ec4d4945f275444e6851d6bf21e771249d4e7fd1d46ef

Contents?: true

Size: 635 Bytes

Versions: 26

Compression:

Stored size: 635 Bytes

Contents

class Lono::Sets::Instances
  class Base < Lono::Sets::Base
    # Simple structure to help with subtracting logic
    # [["112233445566", "us-west-1"], ["112233445566", "us-west-1"]]
    def requested
      requested = []
      accounts.each do |a|
        regions.each do |r|
          item = [a,r]
          requested << item
        end
      end
      requested.sort.uniq
    end
    memoize :requested

    def accounts
      @options[:accounts]
    end

    def regions
      @options[:regions]
    end

    def stack_instances
      resp = cfn.list_stack_instances(stack_set_name: @stack)
      resp.summaries
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
lono-7.4.11 lib/lono/sets/instances/base.rb
lono-7.4.10 lib/lono/sets/instances/base.rb
lono-7.4.9 lib/lono/sets/instances/base.rb
lono-7.4.8 lib/lono/sets/instances/base.rb
lono-7.4.7 lib/lono/sets/instances/base.rb
lono-7.4.6 lib/lono/sets/instances/base.rb
lono-7.4.5 lib/lono/sets/instances/base.rb
lono-7.4.4 lib/lono/sets/instances/base.rb
lono-7.4.3 lib/lono/sets/instances/base.rb
lono-7.4.2 lib/lono/sets/instances/base.rb
lono-7.4.1 lib/lono/sets/instances/base.rb
lono-7.4.0 lib/lono/sets/instances/base.rb
lono-7.3.2 lib/lono/sets/instances/base.rb
lono-7.3.1 lib/lono/sets/instances/base.rb
lono-7.3.0 lib/lono/sets/instances/base.rb
lono-7.2.3 lib/lono/sets/instances/base.rb
lono-7.2.2 lib/lono/sets/instances/base.rb
lono-7.2.1 lib/lono/sets/instances/base.rb
lono-7.2.0 lib/lono/sets/instances/base.rb
lono-7.1.0 lib/lono/sets/instances/base.rb