mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-08 16:26:25 -04:00
Isolate generate class from instance so we can do class checks
This commit is contained in:
parent
8cc6116cdf
commit
7404ef89a6
1 changed files with 3 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ module VagrantPlugins
|
|||
REVERSE_MAPS.delete_if { |k, _| !k.name.include?("::") }
|
||||
|
||||
# Constant used for generating value
|
||||
GENERATE = Class.new {
|
||||
GENERATE_CLASS = Class.new {
|
||||
def self.to_s
|
||||
"[Value Generation]"
|
||||
end
|
||||
|
|
@ -70,7 +70,8 @@ module VagrantPlugins
|
|||
def inspect
|
||||
to_s
|
||||
end
|
||||
}.new.freeze
|
||||
}
|
||||
GENERATE = GENERATE_CLASS.new.freeze
|
||||
|
||||
include Util::HasLogger
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue