Module: Fog::Provider

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

Instance Method Summary collapse

Instance Method Details

#service(new_service) ⇒ Object



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

def service(new_service)
  services << new_service
  require File.join(@service_path, new_service.to_s)
end

#service_path(new_path) ⇒ Object



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

def service_path(new_path)
  @service_path = new_path
end

#servicesObject



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

def services
  @services ||= []
end