lib/config_builder/model/vm.rb in vagrant-config_builder-0.9.0 vs lib/config_builder/model/vm.rb in vagrant-config_builder-0.10.0
- old
+ new
@@ -91,10 +91,15 @@
# @!attribute [rw] hostname
# @return [String] The hostname the machine should have.
def_model_attribute :hostname
+ # @!attribute [rw] communicator
+ # @return [String] The name of the communicator to use when sending
+ # commands to this box. Set to 'winrm' for Windows VMs.
+ def_model_attribute :communicator
+
def initialize
@defaults = {
:providers => [],
:provisioners => [],
:forwarded_ports => [],
@@ -110,9 +115,11 @@
with_attr(:box) { |val| vm_config.box = attr(:box) }
with_attr(:box_url) { |val| vm_config.box_url = attr(:box_url) }
with_attr(:hostname) { |val| vm_config.hostname = attr(:hostname) }
with_attr(:guest) { |val| vm_config.guest = attr(:guest) }
+
+ with_attr(:communicator) { |val| vm_config.communicator = attr(:communicator) }
eval_models(vm_config)
end
end
end