Sha256: 67090602660506daa55f4fb5f293752d506328e1dc2f064d892adc7e63dda06f

Contents?: true

Size: 433 Bytes

Versions: 14

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module Awspec::Helper
  module States
    EC2_STATES = %w[pending running shutting-down terminated stopping stopped]

    def self.ec2_states_checks
      Enumerator.new do |yielder|
        n = 0
        while n < EC2_STATES.size
          method_name = "#{EC2_STATES[n].tr('-', '_')}?"
          yielder.yield(method_name, EC2_STATES[n])
          n += 1
        end
      end.lazy
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/helper/states.rb
awspec-1.31.0 lib/awspec/helper/states.rb
awspec-1.30.0 lib/awspec/helper/states.rb
awspec-1.29.3 lib/awspec/helper/states.rb
awspec-1.29.2 lib/awspec/helper/states.rb
awspec-1.29.1 lib/awspec/helper/states.rb
awspec-1.29.0 lib/awspec/helper/states.rb
awspec-1.28.2 lib/awspec/helper/states.rb
awspec-1.28.1 lib/awspec/helper/states.rb
awspec-1.28.0 lib/awspec/helper/states.rb
awspec-1.27.1 lib/awspec/helper/states.rb
awspec-1.27.0 lib/awspec/helper/states.rb
awspec-1.26.0 lib/awspec/helper/states.rb
awspec-1.25.2 lib/awspec/helper/states.rb