handle MultiWord bucket classes
This commit is contained in:
parent
064160288a
commit
ce6e08fd0d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue