Module: CloudFoundry::Client::Info

Included in:
CloudFoundry::Client
Defined in:
lib/cloudfoundry/client/info.rb

Overview

CloudFoundry API Info methods.

Instance Method Summary collapse

Instance Method Details

#cloud_infoHash

Returns information about the target cloud and, if logged, information about the user account.

Returns:

  • (Hash)

    Information about the target cloud and, if logged, information about the user account.



8
9
10
# File 'lib/cloudfoundry/client/info.rb', line 8

def cloud_info()
  get(CloudFoundry::Client::CLOUD_INFO_PATH)
end

#cloud_runtimes_infoHash

Returns information about system runtimes that are available on the target cloud.

Returns:

  • (Hash)

    System Runtimes available on the target cloud.



15
16
17
# File 'lib/cloudfoundry/client/info.rb', line 15

def cloud_runtimes_info()
  get(CloudFoundry::Client::CLOUD_RUNTIMES_INFO_PATH)
end

#cloud_services_infoHash

Returns information about system services that are available on the target cloud.

Returns:

  • (Hash)

    System Services available on the target cloud.

Requires a user logged in:

  • True



23
24
25
26
# File 'lib/cloudfoundry/client/info.rb', line 23

def cloud_services_info()
  
  get(CloudFoundry::Client::CLOUD_SERVICES_INFO_PATH)
end