mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
b2c8ff0388
Should facilitate the following: require 'fog/aws' require 'fog/compute' require 'fog/aws/compute' I think once you `require 'rubygems'` those should work. further cleanup should reduce common requires (ie nokogiri)
25 lines
460 B
Ruby
25 lines
460 B
Ruby
module Fog
|
|
|
|
def self.providers
|
|
@providers ||= []
|
|
end
|
|
|
|
module Provider
|
|
|
|
def self.extended(base)
|
|
Fog.providers << base.to_s.split('::').last
|
|
end
|
|
|
|
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
|
|
|
|
def services
|
|
@services ||= []
|
|
end
|
|
|
|
end
|
|
end
|