Module: Rig::Connection
- Defined in:
- lib/rig/model/connection.rb
Class Method Summary collapse
Class Method Details
.balancer ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rig/model/connection.rb', line 14 def balancer @balancer ||= begin if Rig.account[:balancer] #TODO: figure out the standardized way of handling balancers Fog::AWS::ELB.new(Rig.account[:balancer]) end end end |
.compute ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rig/model/connection.rb', line 7 def compute @compute ||= begin if Rig.account[:compute] Fog::Compute.new(Rig.account[:compute]) end end end |
.database ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/rig/model/connection.rb', line 29 def database @database ||= begin if Rig.account[:database] Rig::Model::Database.new(Rig.account[:database]) end end end |
.dns ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rig/model/connection.rb', line 22 def dns @dns ||= begin if Rig.account[:dns] Fog::DNS.new(Rig.account[:dns]) end end end |