handle MultiWord bucket classes

This commit is contained in:
Roman Heinrich 2013-07-17 13:45:02 +02:00
parent 064160288a
commit ce6e08fd0d

View file

@ -15,8 +15,8 @@ module VagrantPlugins
end
def self.bucket_name
# TODO: Handle MultiWord bucket classes
self.name.split('::').last.downcase
class_name = self.name.split('::').last
class_name.scan(/[A-Z][a-z]*/).map{|x| x.downcase}.join("_")
end
def self.install(name, env, configs)