Method: Runcible::Instance#initialize
- Defined in:
- lib/runcible/instance.rb
#initialize(config = {}) ⇒ Instance
Initialize a Runcible instance
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/runcible/instance.rb', line 19 def initialize(config = {}) @config = { :api_path => '/pulp/api/v2/', :url => 'https://localhost', :user => '', :http_auth => {:password => {} }, :headers => {:content_type => 'application/json', :accept => 'application/json'}, :logging => {} }.merge(config).with_indifferent_access initialize_wrappers end |