knife-windows 0.8.0.rc.1 → 0.8.0.rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OWVkNjZmMDM3Mjg5MjdmYjEwM2ZjMGQ0NDVjZmEwZjRmY2Y2M2Q2Mg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzNjMGMxOGZjM2RmYTlkYjg3M2Y3ODM2MGEwMmI1ZDliNjYyYjAzYQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDJlNzlmMTY1NjVjZjUxOTM4YTEyOTM5YTdkYjQyYTU2MDYzYzFjMDMzODZm
|
|
10
|
+
MjYyOGEyODNmNTc1OTc2YTAyNTJmMmQ1YmVlNWRjZmU5ZjBiNzk0ZTY1Mzkw
|
|
11
|
+
YjdjMTcyOTU2YmIwZDIwNzRmNWE0ZTFiN2Y5MTk0MzBiOWVlNTI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OGIyZTRlYmIyOThkYzFhYWU5ZjM4MzA5MmEzODhiYTZjM2M4YWNiMjFiZmZj
|
|
14
|
+
YzgzMTdmMDcwNDU1YjdkNTk2ZDU1OGJhYTI0OWVkNDRmNTYxYzQ3MmIwMDQ4
|
|
15
|
+
YjQ2YWRlZDIyOTgyYTE0NjU0M2Q3NTJjNDYzYTJmMDM0MzQ5NTM=
|
data/knife-windows.gemspec
CHANGED
|
@@ -14,8 +14,10 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.description = s.summary
|
|
15
15
|
|
|
16
16
|
s.required_ruby_version = ">= 1.9.1"
|
|
17
|
-
s.add_dependency "winrm-s", "0.2
|
|
18
|
-
s.add_dependency "em-winrm", "0.6
|
|
17
|
+
s.add_dependency "winrm-s", "~> 0.2"
|
|
18
|
+
s.add_dependency "em-winrm", "~> 0.6"
|
|
19
|
+
|
|
20
|
+
s.add_development_dependency 'pry'
|
|
19
21
|
|
|
20
22
|
s.files = `git ls-files`.split("\n")
|
|
21
23
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
@@ -96,8 +96,8 @@ class Chef
|
|
|
96
96
|
|
|
97
97
|
option :auth_timeout,
|
|
98
98
|
:long => "--auth-timeout MINUTES",
|
|
99
|
-
:description => "The maximum time in minutes to wait to for authentication over the transport to the node to succeed. The default value is
|
|
100
|
-
:default =>
|
|
99
|
+
:description => "The maximum time in minutes to wait to for authentication over the transport to the node to succeed. The default value is 2 minutes.",
|
|
100
|
+
:default => 2
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
@@ -55,10 +55,10 @@ describe Chef::Knife::BootstrapWindowsWinrm do
|
|
|
55
55
|
bootstrap.send(:wait_for_remote_response, 2)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
it 'should have a wait timeout of
|
|
58
|
+
it 'should have a wait timeout of 2 minutes by default' do
|
|
59
59
|
allow(bootstrap).to receive(:run_command).and_raise(WinRM::WinRMHTTPTransportError)
|
|
60
60
|
allow(bootstrap).to receive(:create_bootstrap_bat_command).and_raise(SystemExit)
|
|
61
|
-
expect(bootstrap).to receive(:wait_for_remote_response).with(
|
|
61
|
+
expect(bootstrap).to receive(:wait_for_remote_response).with(2)
|
|
62
62
|
allow(bootstrap).to receive(:validate_name_args!).and_return(nil)
|
|
63
63
|
bootstrap.config[:auth_timeout] = bootstrap.options[:auth_timeout][:default]
|
|
64
64
|
expect { bootstrap.bootstrap }.to raise_error(SystemExit)
|
|
@@ -93,8 +93,8 @@ describe Chef::Knife::BootstrapWindowsWinrm do
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
it 'should stop retrying if more than
|
|
97
|
-
times = [ Time.new(2014, 4, 1, 22, 25), Time.new(2014, 4, 1, 22, 51), Time.new(2014, 4, 1, 22,
|
|
96
|
+
it 'should stop retrying if more than 2 minutes has elapsed' do
|
|
97
|
+
times = [ Time.new(2014, 4, 1, 22, 25), Time.new(2014, 4, 1, 22, 51), Time.new(2014, 4, 1, 22, 28) ]
|
|
98
98
|
allow(Time).to receive(:now).and_return(*times)
|
|
99
99
|
run_command_result = lambda {raise WinRM::WinRMHTTPTransportError, '401'}
|
|
100
100
|
allow(bootstrap).to receive(:validate_name_args!).and_return(nil)
|
metadata
CHANGED
|
@@ -1,43 +1,57 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-windows
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.0.rc.
|
|
4
|
+
version: 0.8.0.rc.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Seth Chisamore
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: winrm-s
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.2
|
|
19
|
+
version: '0.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.2
|
|
26
|
+
version: '0.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: em-winrm
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ~>
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.6
|
|
33
|
+
version: '0.6'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ~>
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.6
|
|
40
|
+
version: '0.6'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: pry
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ! '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
description: Plugin that adds functionality to Chef's Knife CLI for configuring/interacting
|
|
42
56
|
with nodes running Microsoft Windows
|
|
43
57
|
email:
|