Module: Fog::Provider
- Included in:
- AWS, Bluebox, Brightbox, DNSMadeEasy, DNSimple, Dynect, Ecloud, GoGrid, Google, Linode, Local, NewServers, Ninefold, Rackspace, Slicehost, StormOnDemand, Vcloud, VirtualBox, Voxel, Zerigo
- Defined in:
- lib/fog/core/provider.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
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 |
#services ⇒ Object
15 16 17 |
# File 'lib/fog/core/provider.rb', line 15 def services @services ||= [] end |