kernel/v2: configurable communicator (doesn't do anything yet)
This commit is contained in:
parent
eebebd8837
commit
40d89cf5ea
|
@ -25,6 +25,7 @@ module VagrantPlugins
|
||||||
attr_accessor :box_download_checksum_type
|
attr_accessor :box_download_checksum_type
|
||||||
attr_accessor :box_download_client_cert
|
attr_accessor :box_download_client_cert
|
||||||
attr_accessor :box_download_insecure
|
attr_accessor :box_download_insecure
|
||||||
|
attr_accessor :communicator
|
||||||
attr_accessor :graceful_halt_timeout
|
attr_accessor :graceful_halt_timeout
|
||||||
attr_accessor :guest
|
attr_accessor :guest
|
||||||
attr_accessor :hostname
|
attr_accessor :hostname
|
||||||
|
@ -42,6 +43,7 @@ module VagrantPlugins
|
||||||
@box_download_insecure = UNSET_VALUE
|
@box_download_insecure = UNSET_VALUE
|
||||||
@box_url = UNSET_VALUE
|
@box_url = UNSET_VALUE
|
||||||
@box_version = UNSET_VALUE
|
@box_version = UNSET_VALUE
|
||||||
|
@communicator = UNSET_VALUE
|
||||||
@graceful_halt_timeout = UNSET_VALUE
|
@graceful_halt_timeout = UNSET_VALUE
|
||||||
@guest = UNSET_VALUE
|
@guest = UNSET_VALUE
|
||||||
@hostname = UNSET_VALUE
|
@hostname = UNSET_VALUE
|
||||||
|
@ -314,6 +316,7 @@ module VagrantPlugins
|
||||||
@box_download_insecure = false if @box_download_insecure == UNSET_VALUE
|
@box_download_insecure = false if @box_download_insecure == UNSET_VALUE
|
||||||
@box_url = nil if @box_url == UNSET_VALUE
|
@box_url = nil if @box_url == UNSET_VALUE
|
||||||
@box_version = nil if @box_version == UNSET_VALUE
|
@box_version = nil if @box_version == UNSET_VALUE
|
||||||
|
@communicator = nil if @communicator == UNSET_VALUE
|
||||||
@graceful_halt_timeout = 60 if @graceful_halt_timeout == UNSET_VALUE
|
@graceful_halt_timeout = 60 if @graceful_halt_timeout == UNSET_VALUE
|
||||||
@guest = nil if @guest == UNSET_VALUE
|
@guest = nil if @guest == UNSET_VALUE
|
||||||
@hostname = nil if @hostname == UNSET_VALUE
|
@hostname = nil if @hostname == UNSET_VALUE
|
||||||
|
|
|
@ -98,6 +98,13 @@ describe VagrantPlugins::Kernel_V2::VMConfig do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#communicator" do
|
||||||
|
it "is nil by default" do
|
||||||
|
subject.finalize!
|
||||||
|
expect(subject.communicator).to be_nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe "#guest" do
|
describe "#guest" do
|
||||||
it "is nil by default" do
|
it "is nil by default" do
|
||||||
subject.finalize!
|
subject.finalize!
|
||||||
|
|
Loading…
Reference in New Issue