Sha256: 503140fd9b3ffa9190051979ddabce580c6fad0af0981151fd030953c6ca20c7

Contents?: true

Size: 576 Bytes

Versions: 8

Compression:

Stored size: 576 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 self.load!(cluster)
          result = Ec2.connection.describe_placement_groups
          result.body["placementGroupSet"].each do |group|
            register group unless group.blank?
          end
        end
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ironfan-4.0.9 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.8 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.5 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.4 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.3 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.2 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.1 lib/ironfan/provider/ec2/placement_group.rb
ironfan-4.0.0 lib/ironfan/provider/ec2/placement_group.rb