Sha256: ec83fa122d18e29b4714252cc96f94b97ebf4309d71fc635cf59fb00ef51730b
Contents?: true
Size: 811 Bytes
Versions: 3
Compression:
Stored size: 811 Bytes
Contents
module Vagrant module Config class WinRM < Vagrant::Config::Base attr_accessor :username attr_accessor :password attr_accessor :host attr_accessor :port attr_accessor :guest_port attr_accessor :max_tries attr_accessor :timeout def initialize @username = "vagrant" @password = "vagrant" @guest_port = 5985 @host = "localhost" @max_tries = 12 @timeout = 30 end def validate(env, errors) [:username, :password, :host, :max_tries, :timeout].each do |field| errors.add(I18n.t("vagrant.config.common.error_empty", :field => field)) if !instance_variable_get("@#{field}".to_sym) end end end end end Vagrant.config_keys.register(:winrm) { Vagrant::Config::WinRM }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-windows-0.0.3 | lib/vagrant-windows/config/winrm.rb |
vagrant-windows-0.0.2 | lib/vagrant-windows/config/winrm.rb |
vagrant-windows-0.0.1 | lib/vagrant-windows/config/winrm.rb |