Sha256: 99e2ebefe51c67f06cb3431edc3cc4928eef38f01b58a12d425431623b841b58

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_orchestrations
          response = request(
            :expects => 200,
            :method  => 'GET',
            :path    => "/orchestration/Compute-#{@identity_domain}/"
          )
          response
        end
      end

      class Mock
        def list_orchestrations
          response = Excon::Response.new

          orchs = self.data[:orchestrations].values
          response.body = {
            'result' => orchs
          }
          response
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/compute/list_orchestrations.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/compute/list_orchestrations.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/compute/list_orchestrations.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/compute/list_orchestrations.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/compute/list_orchestrations.rb