Module: Openstack::SwiftConfig
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.configs ⇒ Object
11 12 13 |
# File 'lib/openstack-swift/swift_config.rb', line 11 def configs @config_file ||= load_file end |
.load_file ⇒ Object
15 16 17 |
# File 'lib/openstack-swift/swift_config.rb', line 15 def load_file YAML.load_file(File.(File.dirname(__FILE__)) + "/../../config/swift.yml")[:swift] end |
Instance Method Details
#[](name) ⇒ Object
6 7 8 |
# File 'lib/openstack-swift/swift_config.rb', line 6 def [](name) configs[name] end |