Sha256: 0c56529a71ba32a125c6684a806159f007ef09d50d98b648b463b9e9d78c1afc

Contents?: true

Size: 591 Bytes

Versions: 10

Compression:

Stored size: 591 Bytes

Contents

module Fog
  module Compute
    class CloudAtCost
      class Real
        def list_tasks
          request(
            :expects => [200],
            :method => 'GET',
            :path => '/api/v1/listtasks.php'
          )
        end
      end

      # noinspection RubyStringKeysInHashInspection
      class Mock
        def list_tasks
          response = Excon::Response.new
          response.status = 200
          response.body = {
              'status' => 'OK',
              'servers'  => self.data[:data]
          }
          response
        end
      end
    end
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-cloudatcost-0.1.2/lib/fog/cloudatcost/requests/list_tasks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-cloudatcost-0.1.2/lib/fog/cloudatcost/requests/list_tasks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-cloudatcost-0.1.2/lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.2.3 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.2.2 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.2.1 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.2.0 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.1.2 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.1.1 lib/fog/cloudatcost/requests/list_tasks.rb
fog-cloudatcost-0.1.0 lib/fog/cloudatcost/requests/list_tasks.rb