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
|
end
|
||||||
|
|
||||||
def self.bucket_name
|
def self.bucket_name
|
||||||
# TODO: Handle MultiWord bucket classes
|
class_name = self.name.split('::').last
|
||||||
self.name.split('::').last.downcase
|
class_name.scan(/[A-Z][a-z]*/).map{|x| x.downcase}.join("_")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.install(name, env, configs)
|
def self.install(name, env, configs)
|
||||||
|
|
Loading…
Reference in a new issue