Class: Bosh::Agent::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/agent_client.rb,
lib/agent_client/version.rb

Constant Summary collapse

VERSION =
'1.3262.24.0'

Class Method Summary collapse

Class Method Details

.create(uri, options = { }) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/agent_client.rb', line 19

def self.create(uri, options = { })
  scheme = URI.parse(uri).scheme
  case scheme
  when 'https'
    HTTPClient.new(uri, options)
  else
    raise "Invalid client scheme, available providers are: 'https' agent uri was: #{uri}"
  end
end