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 |