Module: Fog::Provider

Included in:
AWS, Bluebox, Brightbox, DNSimple, Ecloud, GoGrid, Google, Linode, Local, NewServers, Rackspace, Slicehost, Voxel, Zerigo
Defined in:
lib/fog/core/provider.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



4
5
6
# File 'lib/fog/core/provider.rb', line 4

def self.extended(base)
  Fog.providers << base.to_s.split('::').last
end

Instance Method Details

#service(new_service, path) ⇒ Object



8
9
10
11
# File 'lib/fog/core/provider.rb', line 8

def service(new_service, path)
  services << new_service
  require File.join('fog', path)
end

#servicesObject



13
14
15
# File 'lib/fog/core/provider.rb', line 13

def services
  @services ||= []
end