Class: Bosh::Agent::Client
- Inherits:
-
Object
- Object
- Bosh::Agent::Client
- 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, = { }) scheme = URI.parse(uri).scheme case scheme when 'https' HTTPClient.new(uri, ) else raise "Invalid client scheme, available providers are: 'https' agent uri was: #{uri}" end end |