Module: Slicehost
- Defined in:
- lib/fog/slicehost/bin.rb
Instance Method Summary collapse
Instance Method Details
#[](service) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/slicehost/bin.rb', line 9 def [](service) @@connections ||= Hash.new do |hash, key| credentials = Fog.credentials.reject do |k,v| ![:slicehost_password].include?(k) end hash[key] = case key when :slices Fog::Slicehost.new(credentials) end end @@connections[service] end |
#flavors ⇒ Object
22 23 24 |
# File 'lib/fog/slicehost/bin.rb', line 22 def flavors self[:slices].flavors end |
#images ⇒ Object
26 27 28 |
# File 'lib/fog/slicehost/bin.rb', line 26 def images self[:slices].images end |
#initialized? ⇒ Boolean
5 6 7 |
# File 'lib/fog/slicehost/bin.rb', line 5 def initialized? true end |
#servers ⇒ Object
30 31 32 |
# File 'lib/fog/slicehost/bin.rb', line 30 def servers self[:slices].servers end |