add a option to ignore the vagrantfile packaged with the box
This commit is contained in:
parent
0699323da2
commit
282c7341c9
|
@ -22,6 +22,7 @@ module VagrantPlugins
|
|||
attr_accessor :base_mac
|
||||
attr_accessor :boot_timeout
|
||||
attr_accessor :box
|
||||
attr_accessor :box_ignore_box_vagrantfile
|
||||
attr_accessor :box_check_update
|
||||
attr_accessor :box_url
|
||||
attr_accessor :box_server_url
|
||||
|
@ -51,6 +52,7 @@ module VagrantPlugins
|
|||
@base_mac = UNSET_VALUE
|
||||
@boot_timeout = UNSET_VALUE
|
||||
@box = UNSET_VALUE
|
||||
@box_ignore_box_vagrantfile = UNSET_VALUE
|
||||
@box_check_update = UNSET_VALUE
|
||||
@box_download_ca_cert = UNSET_VALUE
|
||||
@box_download_ca_path = UNSET_VALUE
|
||||
|
@ -378,6 +380,8 @@ module VagrantPlugins
|
|||
@boot_timeout = 300 if @boot_timeout == UNSET_VALUE
|
||||
@box = nil if @box == UNSET_VALUE
|
||||
|
||||
@box_ignore_box_vagrantfile = false if @box_ignore_box_vagrantfile == UNSET_VALUE
|
||||
|
||||
if @box_check_update == UNSET_VALUE
|
||||
@box_check_update = !present?(ENV["VAGRANT_BOX_UPDATE_CHECK_DISABLE"])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue