Module: Smartdc
- Defined in:
- lib/smartdc.rb,
lib/smartdc/cli.rb,
lib/smartdc/auth.rb,
lib/smartdc/client.rb,
lib/smartdc/default.rb,
lib/smartdc/version.rb,
lib/smartdc/configure.rb,
lib/smartdc/cli_helper.rb,
lib/smartdc/cli_configure.rb
Defined Under Namespace
Modules: Api, Cli, CliHelper, Configure, Default
Classes: Auth, CliConfigure, Client
Constant Summary
collapse
- VERSION =
'2.0.2'.freeze
Class Method Summary
collapse
Class Method Details
.client(options = {}) ⇒ Object
16
17
18
19
|
# File 'lib/smartdc.rb', line 16
def client(options={})
@client = nil unless options.empty?
@client ||= Smartdc::Client.new(options)
end
|
8
9
10
|
# File 'lib/smartdc.rb', line 8
def configure
yield Smartdc::Configure
end
|
.method_missing(method, *args, &block) ⇒ Object
25
26
27
28
|
# File 'lib/smartdc.rb', line 25
def method_missing(method, *args, &block)
return super unless client.respond_to?(method)
client.send(method, *args, &block)
end
|
.root ⇒ Object
21
22
23
|
# File 'lib/smartdc.rb', line 21
def root
@root ||= File.expand_path('..', File.dirname(__FILE__))
end
|