Sha256: 49bca72c500e69f090003efdfd3394418d8b112c806a15c1ef1619ab3d026cf9

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents

module Roark
  module Aws
    module Ec2
      class AmiState
        def initialize(connection)
          @connection = connection
        end

        def state(ami_id)
          @connection.ec2.images[ami_id].state
        end

        def exists?(ami_id)
          @connection.ec2.images[ami_id].exists?
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roark-0.2.2 lib/roark/aws/ec2/ami_state.rb
roark-0.2.1 lib/roark/aws/ec2/ami_state.rb
roark-0.2.0 lib/roark/aws/ec2/ami_state.rb
roark-0.1.0 lib/roark/aws/ec2/ami_state.rb
roark-0.0.1 lib/roark/aws/ec2/ami_state.rb