Class: Ogle::Client
- Inherits:
-
Object
- Object
- Ogle::Client
- Defined in:
- lib/ogle/client.rb
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(options) ⇒ Client
constructor
Required:
host
: A string containing the hostname or IP of your glance server.
Constructor Details
#initialize(options) ⇒ Client
Required: host
: A string containing the hostname or IP of your glance server
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ogle/client.rb', line 9 def initialize @connection = Hugs::Client.new( :host => [:host], :scheme => [:scheme] || "http", :port => [:port] || 9292, :user => [:user], :password => [:pass], :raise_errors => true ) end |