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-1.2.0 lib/fog/aws/models/auto_scaling/activities.rb
ktheory-fog-1.1.2 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
fog-1.1.2 lib/fog/aws/models/auto_scaling/activities.rb
fog_tractical-1.1.4 lib/fog/aws/models/auto_scaling/activities.rb
fog_tractical-1.1.3 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
fog-1.1.1 lib/fog/aws/models/auto_scaling/activities.rb
fog-1.1.0 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
tag-fog-1.0.1 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
fog-1.0.0 lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/auto_scaling/activities.rb