Module: Smartdc::Configure
- Defined in:
- lib/smartdc/configure.rb
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
4 5 6 7 8 9 |
# File 'lib/smartdc/configure.rb', line 4 def attributes @attributes ||= i[ url version ssl_verify middleware username use_key rsa_path ] end |
.options ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/smartdc/configure.rb', line 19 def Hash[ Smartdc::Configure.attributes.map do |attribute| [attribute, instance_variable_get(:"@#{attribute}")] end ] end |
.setup ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/smartdc/configure.rb', line 11 def setup attributes.each do |attribute| if Smartdc::Default.respond_to?(attribute) instance_variable_set(:"@#{attribute}", Smartdc::Default.send(attribute)) end end end |