Sha256: 651e17fa7816a654ebfab50045b706f8140e15e2ed5104f7b92f8b696f27d32d

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

require "cfoundry/baseclient"
require "cfoundry/rest_client"
require "cfoundry/auth_token"

require "cfoundry/v1/app"
require "cfoundry/v1/framework"
require "cfoundry/v1/runtime"
require "cfoundry/v1/service"
require "cfoundry/v1/service_plan"
require "cfoundry/v1/service_instance"
require "cfoundry/v1/user"

require "cfoundry/v2/app"
require "cfoundry/v2/framework"
require "cfoundry/v2/runtime"
require "cfoundry/v2/service"
require "cfoundry/v2/service_binding"
require "cfoundry/v2/service_instance"
require "cfoundry/v2/service_plan"
require "cfoundry/v2/service_auth_token"
require "cfoundry/v2/user"
require "cfoundry/v2/organization"
require "cfoundry/v2/space"
require "cfoundry/v2/domain"
require "cfoundry/v2/route"
require "cfoundry/v2/stack"

require "cfoundry/v1/base"
require "cfoundry/v1/client"
require "cfoundry/v2/base"
require "cfoundry/v2/client"

module CFoundry
  class Client < BaseClient
    def self.new(*args)
      target, _ = args

      base = super(target)

      case base.info[:version]
      when 2
        CFoundry::V2::Client.new(*args)
      else
        CFoundry::V1::Client.new(*args)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cfoundry-0.5.3.rc7 lib/cfoundry/client.rb
cfoundry-0.5.3.rc6 lib/cfoundry/client.rb
cfoundry-0.6.0.rc3 lib/cfoundry/client.rb
cfoundry-0.6.0.rc2 lib/cfoundry/client.rb
cfoundry-0.6.0.rc1 lib/cfoundry/client.rb
cfoundry-0.5.3.rc5 lib/cfoundry/client.rb
cfoundry-0.5.3.rc4 lib/cfoundry/client.rb