Move feature flag checking into a single function
This commit is contained in:
parent
d551738bc7
commit
c07f99fe7d
|
@ -9,8 +9,8 @@ module Vagrant
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
def global_enabled?
|
def global_enabled?
|
||||||
if !defined?(@_experimental)
|
if !defined?(@_experimental)
|
||||||
experimental = ENV["VAGRANT_EXPERIMENTAL"].to_s
|
experimental = features_requested
|
||||||
if experimental != "0" && !experimental.empty?
|
if experimental.size >= 1 && experimental.first != "0"
|
||||||
@_experimental = true
|
@_experimental = true
|
||||||
else
|
else
|
||||||
@_experimental = false
|
@_experimental = false
|
||||||
|
|
Loading…
Reference in New Issue