Sha256: f1bf2342bef1c9b3a310101e18659168515d238ada2274ca1c90c4b3555eb50c

Contents?: true

Size: 808 Bytes

Versions: 42

Compression:

Stored size: 808 Bytes

Contents

require 'fog/aws/models/auto_scaling/activity'

module Fog
  module AWS
    class AutoScaling
      class Activities < Fog::Collection

        model Fog::AWS::AutoScaling::Activity

        def all
          data = []
          next_token = nil
          loop do
            result = connection.describe_scaling_activities('NextToken' => next_token).body['DescribeScalingActivitiesResult']
            data += result['Activities']
            next_token = result['NextToken']
            break if next_token.nil?
          end
          load(data)
        end

        def get(identity)
          data = connection.describe_scaling_activities('ActivityId' => identity).body['DescribeScalingActivitiesResult']['Activities'].first
          new(data) unless data.nil?
        end

      end
    end
  end
end

Version data entries

42 entries across 42 versions & 13 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/models/auto_scaling/activities.rb
fog-nirvanix-1.8.1 lib/fog/aws/models/auto_scaling/activities.rb
fog-parser-fix-1.6.1 lib/fog/aws/models/auto_scaling/activities.rb
fog-test-again-1.6.0 lib/fog/aws/models/auto_scaling/activities.rb
fog-parser-fix-1.6.0 lib/fog/aws/models/auto_scaling/activities.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/models/auto_scaling/activities.rb
fog-sgonyea-1.8.1 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.8.0 lib/fog/aws/models/auto_scaling/activities.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.7.0 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.6.0 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.5.0 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.4.0 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
michiels-fog-1.3.1 lib/fog/aws/models/auto_scaling/activities.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
fog-1.3.1 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.3.0 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb