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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTU3YTE1ZWZjZGM0YTg5NTYwNTRjYjc4NzJlYmMxMDA4YTAyMDM2YQ==
4
+ YzRkYmM1Yzc1MTFmN2YyN2U4ZDI4MGUzNTA4MzU5ODQ0MTk5YzdhMw==
5
5
  data.tar.gz: !binary |-
6
- MTY1NjQwNmZhOWM2MzMwN2ZiYzlhOTkyNTliNjViMjVmNDMyMTI2Yg==
6
+ YTJiMTMxMmFkY2VmYWVmMjZjNjIwMzg5MTEzMDY2ZTI4NTYzMGI0MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTUwY2I3MTliMWZiYzg3NTAzODVhMjQwYWNmNjQ3NDEzM2FkMDllN2YzYmE1
10
- NzYwZmRhN2U0ZmJkZDg0MjU1NzI5MGRiYzI5YmU2ZjAwZWI0N2I5ZjFlZjA4
11
- OWIyMmNhNjBkM2VjM2Q0ZmM0NDU4YWRjM2ZlNmQ1NmE4ODY1NDE=
9
+ YTg3YmM1NzliZDU4NmExNzJiZDUyYzIyMjgwMmI5NmZmNDQxNjdjMWEyMDU5
10
+ ZGYyMWNhMzJlOWVmZjdiMmU1ZTNhNmU4NDZiNGY1ZDYwMmJlODk2ODc0MGUx
11
+ ZGYxNjBmMjQzOWQyZDE3YTExZDkwNDdlNDAwYWQ5NjQzNGJiMmY=
12
12
  data.tar.gz: !binary |-
13
- OTZhZjZhMjNiNDA3OGE4M2MyOTY4ODJhMGYzYWM1MmQ3NDY5MzYyMmUxMTZj
14
- ZGJlYjdmNjljMDg2MGIxYTZmZjA3MDgyOWMxYTgzYzcwZjU0MjY3ZmYwMjYx
15
- NDY4NWYwZmI4Njg0N2Q1YjQyZGYzMjcwZjc3OWYxOTA0ZWMzMzI=
13
+ OWQwZDg0M2UzOWZkN2NmYjczY2YwZjM4NTllMGQ2NzEzOGQyZDNkMDhiNTZj
14
+ NTU5ZGZmNTM0M2JiMjAyODhmZjJmMDUzN2RkNTkzNDgzMTkzNDZmYmVhOTA4
15
+ NWEwYmM0MWIxYmM2NTQ1OWE4ZTU5OTk2OWRkMWE1MGEzNTg1ZWI=
data/README.md CHANGED
@@ -46,6 +46,7 @@ Host CustomHostname
46
46
  Port 5985
47
47
  User vagrant
48
48
  Password vagrant
49
+ RDPPort 3389
49
50
  ```
50
51
 
51
52
  ## <a name="development"></a> Development
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantWinRM
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
@@ -1,6 +1,9 @@
1
1
  en:
2
2
  vagrant_winrm:
3
3
  errors:
4
+ winrm_not_ready: |-
5
+ Vagrant WinRM communicator is not yet ready.
6
+
4
7
  config_error: |-
5
8
  The current machine is not configured to communicate through WinRM.
6
9
 
@@ -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
@@ -2,4 +2,5 @@ Host <%= host_key %>
2
2
  HostName <%= winrm_host %>
3
3
  Port <%= winrm_port %>
4
4
  User <%= winrm_user %>
5
- Password <%= winrm_password %>
5
+ Password <%= winrm_password %>
6
+ RDPPort <%= rdp_port %>
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.6.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-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitar