Module: Fog::Provider

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
12
13
# File 'lib/fog/core/provider.rb', line 8

def service(new_service, path)
  Fog.services[new_service] ||= []
  Fog.services[new_service] << self.to_s.split('::').last.downcase.to_sym
  self.services << new_service
  require File.join('fog', path)
end

#servicesObject



15
16
17
# File 'lib/fog/core/provider.rb', line 15

def services
  @services ||= []
end