knife-windows 3.0.11 → 3.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/bootstrap_windows_base.rb +2 -2
- data/lib/chef/knife/bootstrap_windows_ssh.rb +1 -0
- data/lib/chef/knife/bootstrap_windows_winrm.rb +3 -2
- data/lib/chef/knife/knife_windows_base.rb +2 -0
- data/lib/chef/knife/windows_cert_generate.rb +5 -2
- data/lib/chef/knife/windows_helper.rb +4 -10
- data/lib/chef/knife/windows_listener_create.rb +3 -1
- data/lib/chef/knife/winrm.rb +4 -4
- data/lib/chef/knife/winrm_base.rb +2 -2
- data/lib/chef/knife/winrm_session.rb +1 -0
- data/lib/chef/knife/winrm_shared_options.rb +0 -3
- data/lib/chef/knife/wsman_test.rb +1 -1
- data/lib/knife-windows/version.rb +1 -1
- data/spec/spec_helper.rb +0 -3
- data/spec/unit/knife/windows_cert_generate_spec.rb +0 -1
- data/spec/unit/knife/winrm_session_spec.rb +1 -0
- data/spec/unit/knife/winrm_spec.rb +1 -0
- data/spec/unit/knife/wsman_test_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ad3aa608039eef25bb00b733c3b56bbcec806951dbc84e5f0c36f4641d9084
|
4
|
+
data.tar.gz: 3b283e4025e05d7105435e6a052449d5e6a47dea17ed8ef20d66aedf64d67f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319ef1eb49599cb8d6d361edf352a936e0b32363e05f4bd8b369902fa85d3327b4ef345d124845bf78da10882e9e52771db1ba4ae78363dd3a7deef9a2257af0
|
7
|
+
data.tar.gz: 621ff09213f84fc5bd21b856d5a989589e3255ddfe51e25fe01c33b4f068b303dfcfa5082f04937f7243563a65b7ba9e71c187aa1c7a454ebe8565fc5d1166f6
|
@@ -17,8 +17,6 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require "chef/knife"
|
20
|
-
require "chef/knife/bootstrap"
|
21
|
-
require "chef/encrypted_data_bag_item"
|
22
20
|
require_relative "knife_windows_base"
|
23
21
|
require "chef/util/path_helper"
|
24
22
|
|
@@ -35,6 +33,8 @@ class Chef
|
|
35
33
|
includer.class_eval do
|
36
34
|
|
37
35
|
deps do
|
36
|
+
require "chef/knife/bootstrap"
|
37
|
+
require "chef/encrypted_data_bag_item"
|
38
38
|
require "readline"
|
39
39
|
require "chef/json_compat"
|
40
40
|
end
|
@@ -16,10 +16,10 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
+
require "chef/knife"
|
19
20
|
require_relative "bootstrap_windows_base"
|
20
|
-
require_relative "winrm"
|
21
21
|
require_relative "winrm_base"
|
22
|
-
require_relative "winrm_knife_base"
|
22
|
+
require_relative "winrm_knife_base" # WinrmCommandSharedFunctions
|
23
23
|
|
24
24
|
class Chef
|
25
25
|
class Knife
|
@@ -30,6 +30,7 @@ class Chef
|
|
30
30
|
include Chef::Knife::WinrmCommandSharedFunctions
|
31
31
|
|
32
32
|
deps do
|
33
|
+
require_relative "winrm"
|
33
34
|
require "chef/json_compat"
|
34
35
|
require "tempfile"
|
35
36
|
Chef::Knife::Winrm.load_deps
|
@@ -17,8 +17,6 @@
|
|
17
17
|
|
18
18
|
require "chef/knife"
|
19
19
|
require_relative "winrm_base"
|
20
|
-
require "openssl"
|
21
|
-
require "socket"
|
22
20
|
|
23
21
|
class Chef
|
24
22
|
class Knife
|
@@ -28,6 +26,11 @@ class Chef
|
|
28
26
|
|
29
27
|
banner "knife windows cert generate FILE_PATH (options)"
|
30
28
|
|
29
|
+
deps do
|
30
|
+
require "openssl"
|
31
|
+
require "socket"
|
32
|
+
end
|
33
|
+
|
31
34
|
option :hostname,
|
32
35
|
short: "-H HOSTNAME",
|
33
36
|
long: "--hostname HOSTNAME",
|
@@ -17,19 +17,13 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require "chef/knife"
|
20
|
-
require_relative "winrm"
|
21
|
-
require_relative "bootstrap_windows_ssh"
|
22
|
-
require_relative "bootstrap_windows_winrm"
|
23
|
-
require_relative "wsman_test"
|
24
|
-
|
25
20
|
class Chef
|
26
21
|
class Knife
|
27
22
|
class WindowsHelper < Knife
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
"#{WsmanTest.banner}"
|
23
|
+
banner "#{BootstrapWindowsWinrm.banner}\n" \
|
24
|
+
"#{BootstrapWindowsSsh.banner}\n" \
|
25
|
+
"#{Winrm.banner}\n" \
|
26
|
+
"#{WsmanTest.banner}"
|
33
27
|
end
|
34
28
|
end
|
35
29
|
end
|
@@ -17,11 +17,13 @@
|
|
17
17
|
|
18
18
|
require "chef/knife"
|
19
19
|
require_relative "winrm_base"
|
20
|
-
require "openssl"
|
21
20
|
|
22
21
|
class Chef
|
23
22
|
class Knife
|
24
23
|
class WindowsListenerCreate < Knife
|
24
|
+
deps do
|
25
|
+
require "openssl"
|
26
|
+
end
|
25
27
|
|
26
28
|
banner "knife windows listener create (options)"
|
27
29
|
|
data/lib/chef/knife/winrm.rb
CHANGED
@@ -17,10 +17,7 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require "chef/knife"
|
20
|
-
require_relative "winrm_knife_base"
|
21
|
-
require_relative "windows_cert_generate"
|
22
|
-
require_relative "windows_cert_install"
|
23
|
-
require_relative "windows_listener_create"
|
20
|
+
require_relative "winrm_knife_base" # WinrmCommandSharedFunctions
|
24
21
|
require_relative "winrm_session"
|
25
22
|
require_relative "knife_windows_base"
|
26
23
|
|
@@ -32,6 +29,9 @@ class Chef
|
|
32
29
|
include Chef::Knife::KnifeWindowsBase
|
33
30
|
|
34
31
|
deps do
|
32
|
+
require_relative "windows_cert_generate"
|
33
|
+
require_relative "windows_cert_install"
|
34
|
+
require_relative "windows_listener_create"
|
35
35
|
require "readline"
|
36
36
|
require "chef/search/query"
|
37
37
|
end
|
@@ -17,8 +17,6 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require "chef/knife"
|
20
|
-
require "chef/encrypted_data_bag_item"
|
21
|
-
require "kconv"
|
22
20
|
|
23
21
|
class Chef
|
24
22
|
class Knife
|
@@ -34,6 +32,8 @@ class Chef
|
|
34
32
|
includer.class_eval do
|
35
33
|
|
36
34
|
deps do
|
35
|
+
require "chef/encrypted_data_bag_item"
|
36
|
+
require "kconv"
|
37
37
|
require "readline"
|
38
38
|
require "chef/json_compat"
|
39
39
|
end
|
@@ -16,7 +16,6 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require "httpclient"
|
20
19
|
require "chef/knife"
|
21
20
|
require_relative "winrm_knife_base"
|
22
21
|
require_relative "wsman_endpoint"
|
@@ -28,6 +27,7 @@ class Chef
|
|
28
27
|
include Chef::Knife::WinrmCommandSharedFunctions
|
29
28
|
|
30
29
|
deps do
|
30
|
+
require "httpclient"
|
31
31
|
require "chef/search/query"
|
32
32
|
end
|
33
33
|
|
data/spec/spec_helper.rb
CHANGED
@@ -17,9 +17,6 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
|
20
|
-
require_relative "../lib/chef/knife/winrm"
|
21
|
-
require_relative "../lib/chef/knife/wsman_test"
|
22
|
-
|
23
20
|
def sample_data(file_name)
|
24
21
|
file = File.expand_path(File.dirname("spec/assets/*")) + "/#{file_name}"
|
25
22
|
File.read(file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-windows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Chisamore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|