Module: Archipel::Api
- Defined in:
- lib/archipel/api.rb,
lib/archipel/api/internal/version.rb
Defined Under Namespace
Modules: Internal
Classes: HypervisorApi, VmApi
Class Method Summary
collapse
Class Method Details
.defaults(login: nil, password: nil, server: nil, hypervisor: nil, **kwargs) ⇒ Object
6
7
8
9
|
# File 'lib/archipel/api.rb', line 6
def self.defaults login: nil, password: nil, server: nil, hypervisor: nil, **kwargs
@config = {login: login, password: password, server: server, hypervisor: hypervisor}
@config.merge! kwargs
end
|
.get_defaults ⇒ Object
11
12
13
|
# File 'lib/archipel/api.rb', line 11
def self.get_defaults
@config || {}
end
|