lib/config_builder/model/winrm.rb in vagrant-config_builder-0.15.1 vs lib/config_builder/model/winrm.rb in vagrant-config_builder-1.0.0.rc1
- old
+ new
@@ -34,23 +34,43 @@
# @!attribute [rw] max_tries
# @return [Fixnum] Maximum number of retry attempts. By default this is 20.
def_model_attribute :max_tries
+ # @!attribute [rw] retry_delay
+ # @return [Fixnum]
+ def_model_attribute :retry_delay
+
# @!attribute [rw] timeout
# @return [Fixnum] The timeout in seconds. By default this is 1800 seconds.
def_model_attribute :timeout
+ # @!attribute [rw] transport
+ # @return [String, Symbol]
+ def_model_attribute :transport
+
+ # @!attribute [rw] ssl_peer_verification
+ # @return [Boolean]
+ def_model_attribute :ssl_peer_verification
+
+ # @!attribute [rw] execution_time_limit
+ # @return [String]
+ def_model_attribute :execution_time_limit
+
def to_proc
Proc.new do |global_config|
winrm = global_config.winrm
- with_attr(:username) { |val| winrm.username = val }
- with_attr(:password) { |val| winrm.password = val }
- with_attr(:host) { |val| winrm.host = val }
- with_attr(:guest) { |val| winrm.guest = val }
- with_attr(:guest_port) { |val| winrm.guest_port = val }
- with_attr(:max_tries) { |val| winrm.max_tries = val }
- with_attr(:timeout) { |val| winrm.timeout = val }
+ with_attr(:username) { |val| winrm.username = val }
+ with_attr(:password) { |val| winrm.password = val }
+ with_attr(:host) { |val| winrm.host = val }
+ with_attr(:guest) { |val| winrm.guest = val }
+ with_attr(:guest_port) { |val| winrm.guest_port = val }
+ with_attr(:max_tries) { |val| winrm.max_tries = val }
+ with_attr(:retry_delay) { |val| winrm.retry_delay = val }
+ with_attr(:timeout) { |val| winrm.timeout = val }
+ with_attr(:transport) { |val| winrm.transport = val.to_sym }
+ with_attr(:ssl_peer_verification) { |val| winrm.ssl_peer_verification = val }
+ with_attr(:execution_time_limit) { |val| winrm.execution_time_limit = val }
end
end
end