Sha256: fa0d1bdcbc085fa6e70460bba530f4cc86537b610c64f3d74d694d39514683ef
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 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_instance" require "cfoundry/v1/user" require "cfoundry/v1/base" require "cfoundry/v1/client" 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/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 def info get("info", :accept => :json) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cfoundry-0.5.0 | lib/cfoundry/client.rb |