Sha256: 136e0be07f79dd39ad16a3d66d5f40a6e3a79e0a27fdf1d803c3528adb0a60b8

Contents?: true

Size: 732 Bytes

Versions: 50

Compression:

Stored size: 732 Bytes

Contents

module Ironfan
  class Provider
    class Ec2

      # Fog::AWS doesn't seem to have native models for PlacementGroup,
      #   using Hash semantics instead
      class PlacementGroup < Ironfan::Provider::Resource
        delegate :[],:[]=,      :to => :adaptee

        def name()
          self["groupName"]
        end

        def to_s
          "<%-15s %-12s %-12s>" % [ self.class.handle, '', name ]
        end

        def self.load!(cluster=nil)
          result = Ec2.connection.describe_placement_groups
          result.body["placementGroupSet"].each do |group|
            register group unless group.blank?
            Chef::Log.debug("Loaded #{group.inspect}")
          end
        end
      end

    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
ironfan-4.11.0 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.10.4 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.10.3 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.10.2 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.10.1 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.10 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.9 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.8 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.7 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.6 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.5 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.4 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.3 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.2 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.1 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.9.0 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.8.7 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.8.6 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.8.5 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.8.4 lib/ironfan/provider/ec2/placement_group.rb