Module: Rig::Connection

Defined in:
lib/rig/model/connection.rb

Class Method Summary collapse

Class Method Details

.balancerObject



14
15
16
17
18
19
20
21
# File 'lib/rig/model/connection.rb', line 14

def balancer
  @balancer ||= begin
    if Rig.[:balancer]
      #TODO: figure out the standardized way of handling balancers
      Fog::AWS::ELB.new(Rig.[:balancer])
    end
  end
end

.computeObject



7
8
9
10
11
12
13
# File 'lib/rig/model/connection.rb', line 7

def compute
  @compute ||= begin
    if Rig.[:compute]
      Fog::Compute.new(Rig.[:compute])
    end
  end
end

.databaseObject



29
30
31
32
33
34
35
# File 'lib/rig/model/connection.rb', line 29

def database
  @database ||= begin
    if Rig.[:database]
      Rig::Model::Database.new(Rig.[:database])
    end
  end
end

.dnsObject



22
23
24
25
26
27
28
# File 'lib/rig/model/connection.rb', line 22

def dns
  @dns ||= begin
    if Rig.[:dns]
      Fog::DNS.new(Rig.[:dns])
    end
  end
end