vagrant-winrm 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -0
- data/lib/vagrant-winrm/commands/winrm_config.rb +2 -1
- data/lib/version.rb +1 -1
- data/locales/en.yml +3 -0
- data/spec/spec_helper.rb +6 -1
- data/spec/vagrant-winrm/commands/winrm_config_spec.rb +3 -0
- data/templates/winrm_config/config.erb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzRkYmM1Yzc1MTFmN2YyN2U4ZDI4MGUzNTA4MzU5ODQ0MTk5YzdhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTJiMTMxMmFkY2VmYWVmMjZjNjIwMzg5MTEzMDY2ZTI4NTYzMGI0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTg3YmM1NzliZDU4NmExNzJiZDUyYzIyMjgwMmI5NmZmNDQxNjdjMWEyMDU5
|
10
|
+
ZGYyMWNhMzJlOWVmZjdiMmU1ZTNhNmU4NDZiNGY1ZDYwMmJlODk2ODc0MGUx
|
11
|
+
ZGYxNjBmMjQzOWQyZDE3YTExZDkwNDdlNDAwYWQ5NjQzNGJiMmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWQwZDg0M2UzOWZkN2NmYjczY2YwZjM4NTllMGQ2NzEzOGQyZDNkMDhiNTZj
|
14
|
+
NTU5ZGZmNTM0M2JiMjAyODhmZjJmMDUzN2RkNTkzNDgzMTkzNDZmYmVhOTA4
|
15
|
+
NWEwYmM0MWIxYmM2NTQ1OWE4ZTU5OTk2OWRkMWE1MGEzNTg1ZWI=
|
data/README.md
CHANGED
@@ -34,7 +34,8 @@ module VagrantPlugins
|
|
34
34
|
winrm_host: VagrantPlugins::CommunicatorWinRM::Helper.winrm_info(machine)[:host],
|
35
35
|
winrm_port: VagrantPlugins::CommunicatorWinRM::Helper.winrm_info(machine)[:port],
|
36
36
|
winrm_user: machine.config.winrm.username,
|
37
|
-
winrm_password: machine.config.winrm.password
|
37
|
+
winrm_password: machine.config.winrm.password,
|
38
|
+
rdp_port: machine.config.rdp.port
|
38
39
|
}
|
39
40
|
|
40
41
|
# Render the template and output directly to STDOUT
|
data/lib/version.rb
CHANGED
data/locales/en.yml
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -19,8 +19,13 @@ def mock_env
|
|
19
19
|
allow(config).to receive(:[]) { |key| config.send(key) }
|
20
20
|
end
|
21
21
|
}
|
22
|
+
let(:rdp_config) {
|
23
|
+
double('rdp_config', port: 4321, search_port: 98765).tap do |config|
|
24
|
+
allow(config).to receive(:[]) { |key| config.send(key) }
|
25
|
+
end
|
26
|
+
}
|
22
27
|
let(:config_vm) { double('config_vm', communicator: :winrm) }
|
23
|
-
let(:machine_config) { double('machine_config', winrm: winrm_config, vm: config_vm) }
|
28
|
+
let(:machine_config) { double('machine_config', winrm: winrm_config, rdp: rdp_config, vm: config_vm) }
|
24
29
|
|
25
30
|
let(:provider) {
|
26
31
|
double('provider', to_sym: :virtualbox).tap do |provider|
|
@@ -59,6 +59,7 @@ describe VagrantPlugins::VagrantWinRM::WinRMConfig, :unit => true do
|
|
59
59
|
expect($stdout.string).to match(/#{winrm_config.port}/)
|
60
60
|
expect($stdout.string).to match(/#{winrm_config.username}/)
|
61
61
|
expect($stdout.string).to match(/#{winrm_config.password}/)
|
62
|
+
expect($stdout.string).to match(/#{rdp_config.port}/)
|
62
63
|
ensure
|
63
64
|
$stdout = STDOUT
|
64
65
|
end
|
@@ -74,6 +75,7 @@ describe VagrantPlugins::VagrantWinRM::WinRMConfig, :unit => true do
|
|
74
75
|
expect($stdout.string).to match(/#{winrm_config.port}/)
|
75
76
|
expect($stdout.string).to match(/#{winrm_config.username}/)
|
76
77
|
expect($stdout.string).to match(/#{winrm_config.password}/)
|
78
|
+
expect($stdout.string).to match(/#{rdp_config.port}/)
|
77
79
|
ensure
|
78
80
|
$stdout = STDOUT
|
79
81
|
end
|
@@ -89,6 +91,7 @@ describe VagrantPlugins::VagrantWinRM::WinRMConfig, :unit => true do
|
|
89
91
|
expect($stdout.string).to match(/#{winrm_config.port}/)
|
90
92
|
expect($stdout.string).to match(/#{winrm_config.username}/)
|
91
93
|
expect($stdout.string).to match(/#{winrm_config.password}/)
|
94
|
+
expect($stdout.string).to match(/#{rdp_config.port}/)
|
92
95
|
ensure
|
93
96
|
$stdout = STDOUT
|
94
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-winrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Baptiste Courtois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitar
|