Sha256: 92f3385414d03f5c89077652e0b32b56f93a696193479f6b399b6fb0524d5b23

Contents?: true

Size: 402 Bytes

Versions: 5

Compression:

Stored size: 402 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/helper/states.rb
awspec-1.25.0 lib/awspec/helper/states.rb
awspec-1.24.4 lib/awspec/helper/states.rb
awspec-1.24.3 lib/awspec/helper/states.rb
awspec-1.24.2 lib/awspec/helper/states.rb