Module: Terremark

Defined in:
lib/fog/terremark/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/terremark/bin.rb', line 9

def [](service)
  @@connections ||= Hash.new do |hash, key|
    credentials = Fog.credentials.reject do |k,v|
      ![:terremark_username, :terremark_password].include?(k)
    end
    hash[key] = case key
    when :vcloud
      Fog::Terremark.new(credentials)
    end
  end
  @@connections[service]
end

#initialized?Boolean

Returns:

  • (Boolean)

5
6
7
# File 'lib/fog/terremark/bin.rb', line 5

def initialized?
  true
end