fixed
This commit is contained in:
parent
cad8c55c02
commit
84c25d1870
@ -1,7 +1,9 @@
|
||||
require "sinatra"
|
||||
|
||||
module Provider
|
||||
class ProviderFactory
|
||||
|
||||
@@providers = nil
|
||||
@@providers = {}
|
||||
|
||||
def self.providers
|
||||
@@providers.keys
|
||||
@ -14,14 +16,10 @@ module Provider
|
||||
end
|
||||
|
||||
def self.all
|
||||
if @@providers.nil?
|
||||
ProviderFactory.init
|
||||
end
|
||||
@@providers.values
|
||||
end
|
||||
|
||||
def self.init conf
|
||||
@@providers = {}
|
||||
["ec2", "openstack", "static"].each do |p|
|
||||
begin
|
||||
require "providers/#{p}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user