mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
18 lines
287 B
Ruby
18 lines
287 B
Ruby
module Fog
|
|
module Provider
|
|
|
|
def self.extended(base)
|
|
Fog.providers << base.to_s.split('::').last
|
|
end
|
|
|
|
def service(new_service, path)
|
|
services << new_service
|
|
require File.join('fog', path)
|
|
end
|
|
|
|
def services
|
|
@services ||= []
|
|
end
|
|
|
|
end
|
|
end
|