handle buckets with "_" in name

This commit is contained in:
Roman Heinrich 2013-07-17 11:50:44 +02:00
parent ae6cb5bcfb
commit 064160288a

View file

@ -20,7 +20,7 @@ module VagrantPlugins
end
def self.install(name, env, configs)
bucket = const_get(name.to_s.capitalize)
bucket = const_get(name.to_s.split("_").map{|x| x.capitalize}.join(""))
bucket.new(name, env, configs).install
end