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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ed600d9a1b420d45bc08d7eb66179a9cf83c64434a40b5fed4f54e90d9d286c
4
- data.tar.gz: cdf15fe2cd5359009344941b2506fbd8cddc40d1075e8aaa8da56b3206c97626
3
+ metadata.gz: d6ad3aa608039eef25bb00b733c3b56bbcec806951dbc84e5f0c36f4641d9084
4
+ data.tar.gz: 3b283e4025e05d7105435e6a052449d5e6a47dea17ed8ef20d66aedf64d67f4a
5
5
  SHA512:
6
- metadata.gz: 4d0bf4cbbeb4a9d24a6a029e8a8e65f8f40e453379ab2552c1694a60c48c130836eafdaa6c4cdc9c2839e0722caf118a1abd26b8ddbcfc72a7cdede4e4a30cd6
7
- data.tar.gz: 940797a147aebee7dab7c95f1a9a4ae4ee34b1c4c8888079dbccabf9783383c3a4cd5a75d0ab9527df6e06324d74e015d844d4e20f2f6fc5c740eafc94903db2
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,6 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
+ require "chef/knife"
19
20
  require_relative "bootstrap_windows_base"
20
21
 
21
22
  class Chef
@@ -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
@@ -16,6 +16,8 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
+ require "chef/knife"
20
+
19
21
  class Chef
20
22
  class Knife
21
23
  module KnifeWindowsBase
@@ -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
- banner "#{BootstrapWindowsWinrm.banner}\n" +
30
- "#{BootstrapWindowsSsh.banner}\n" +
31
- "#{Winrm.banner}\n" +
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
 
@@ -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,6 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
+ require "chef/knife"
19
20
  require "chef/application"
20
21
  require "winrm"
21
22
  require "winrm-elevated"
@@ -17,9 +17,6 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
- require "chef/encrypted_data_bag_item"
21
- require "kconv"
22
-
23
20
  class Chef
24
21
  class Knife
25
22
  module WinrmSharedOptions
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Windows
3
- VERSION = "3.0.11".freeze
3
+ VERSION = "3.0.12".freeze
4
4
  MAJOR, MINOR, TINY = VERSION.split(".")
5
5
  end
6
6
  end
@@ -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)
@@ -18,7 +18,6 @@
18
18
 
19
19
  require "spec_helper"
20
20
  require "chef/knife/windows_cert_generate"
21
- require "openssl"
22
21
 
23
22
  describe Chef::Knife::WindowsCertGenerate do
24
23
  before(:all) do
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "spec_helper"
20
+ require_relative "../../../lib/chef/knife/winrm"
20
21
  require "dummy_winrm_connection"
21
22
 
22
23
  Chef::Knife::Winrm.load_deps
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "spec_helper"
20
+ require_relative "../../../lib/chef/knife/winrm"
20
21
  require "dummy_winrm_connection"
21
22
 
22
23
  Chef::Knife::Winrm.load_deps
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "spec_helper"
20
+ require_relative "../../../lib/chef/knife/wsman_test"
20
21
 
21
22
  describe Chef::Knife::WsmanTest do
22
23
  let(:http_client_mock) { HTTPClient.new }
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.11
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-03 00:00:00.000000000 Z
11
+ date: 2020-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef