Sha256: 555cd7557eb17fdfd4b1c129e9da9054f0efbdab4f8035ac0a8a93053198b28c

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

module Ey
  module Provisioner
    # Represents an EY instance
    class Instance
      attr_accessor :id
      attr_accessor :amazon_id
      attr_accessor :bootstrapped_at
      attr_accessor :chef_status
      attr_accessor :name
      attr_accessor :private_hostname
      attr_accessor :public_hostname
      attr_accessor :role
      attr_accessor :status

      TYPES = %w(
        small
        small_64
        medium_ram
        medium_ram_64
        medium_cpu
        medium_cpu_64
        large
        xlarge
        xlarge_cpu
        xlarge_ram
        doublexlarge_ram
        quadxlarge_ram
        quadxlarge_io
      )

      # Create an Instance representation
      #
      # @param attrs [Hash]
      def initialize(attrs)
        attrs.each do |(attr, value)|
          send("#{attr}=", value)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-provisioner-1.0.2 lib/ey-provisioner/instance.rb
ey-provisioner-1.0.1 lib/ey-provisioner/instance.rb
ey-provisioner-1.0.0 lib/ey-provisioner/instance.rb