Sha256: 3cb81e37f529d6f21fb8434f99c18a50d2ef8cb0a4d47c5325469d51b1c4c6c1

Contents?: true

Size: 569 Bytes

Versions: 25

Compression:

Stored size: 569 Bytes

Contents

require 'fog/ecloud/models/compute/task'

module Fog
  module Compute
    class Ecloud

      class Tasks < Fog::Ecloud::Collection

        model Fog::Compute::Ecloud::Task

        attribute :href, :aliases => :Href

        def all
          check_href!
          if data = connection.get_task_list(href).body[:Task]
            load(data)
          end
        end

        def get(uri)
          if data = connection.get_task(uri)
            new(data.body)
          end
        rescue Fog::Errors::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
michiels-fog-1.3.1 lib/fog/ecloud/models/compute/tasks.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
fog-1.3.1 lib/fog/ecloud/models/compute/tasks.rb
fog-1.3.0 lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
fog-1.2.0 lib/fog/ecloud/models/compute/tasks.rb
ktheory-fog-1.1.2 lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
fog-1.1.2 lib/fog/ecloud/models/compute/tasks.rb
fog_tractical-1.1.4 lib/fog/ecloud/models/compute/tasks.rb
fog_tractical-1.1.3 lib/fog/ecloud/models/compute/tasks.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/tasks.rb
fog-1.1.1 lib/fog/ecloud/models/compute/tasks.rb
fog-1.1.0 lib/fog/ecloud/models/compute/tasks.rb