knife-windows 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +26 -26
- data/CHANGELOG.md +131 -121
- data/DOC_CHANGES.md +22 -14
- data/Gemfile +14 -13
- data/README.md +400 -392
- data/RELEASE_NOTES.md +2 -26
- data/appveyor.yml +39 -39
- data/ci.gemfile +16 -16
- data/knife-windows.gemspec +25 -25
- data/lib/chef/knife/bootstrap/windows-chef-client-msi.erb +246 -233
- data/lib/chef/knife/bootstrap_windows_base.rb +443 -454
- data/lib/chef/knife/bootstrap_windows_ssh.rb +116 -115
- data/lib/chef/knife/bootstrap_windows_winrm.rb +102 -95
- data/lib/chef/knife/core/windows_bootstrap_context.rb +378 -378
- data/lib/chef/knife/knife_windows_base.rb +33 -33
- data/lib/chef/knife/windows_cert_generate.rb +155 -155
- data/lib/chef/knife/windows_cert_install.rb +68 -68
- data/lib/chef/knife/windows_helper.rb +36 -36
- data/lib/chef/knife/windows_listener_create.rb +107 -107
- data/lib/chef/knife/winrm.rb +122 -122
- data/lib/chef/knife/winrm_base.rb +123 -117
- data/lib/chef/knife/winrm_knife_base.rb +306 -305
- data/lib/chef/knife/winrm_session.rb +97 -91
- data/lib/chef/knife/winrm_shared_options.rb +47 -47
- data/lib/chef/knife/wsman_endpoint.rb +44 -44
- data/lib/chef/knife/wsman_test.rb +118 -118
- data/lib/knife-windows/path_helper.rb +234 -234
- data/lib/knife-windows/version.rb +6 -6
- data/spec/assets/win_template_rendered_with_bootstrap_install_command.txt +223 -223
- data/spec/assets/win_template_rendered_with_bootstrap_install_command_on_12_5_client.txt +223 -223
- data/spec/assets/win_template_rendered_without_bootstrap_install_command.txt +335 -335
- data/spec/assets/win_template_rendered_without_bootstrap_install_command_on_12_5_client.txt +335 -335
- data/spec/dummy_winrm_connection.rb +21 -0
- data/spec/functional/bootstrap_download_spec.rb +236 -241
- data/spec/spec_helper.rb +94 -94
- data/spec/unit/knife/bootstrap_options_spec.rb +157 -155
- data/spec/unit/knife/bootstrap_template_spec.rb +98 -98
- data/spec/unit/knife/bootstrap_windows_winrm_spec.rb +423 -426
- data/spec/unit/knife/core/windows_bootstrap_context_spec.rb +177 -177
- data/spec/unit/knife/windows_cert_generate_spec.rb +90 -90
- data/spec/unit/knife/windows_cert_install_spec.rb +51 -51
- data/spec/unit/knife/windows_listener_create_spec.rb +76 -76
- data/spec/unit/knife/winrm_session_spec.rb +71 -76
- data/spec/unit/knife/winrm_spec.rb +500 -508
- data/spec/unit/knife/wsman_test_spec.rb +209 -209
- metadata +16 -17
- data/spec/dummy_winrm_service.rb +0 -24
data/spec/dummy_winrm_service.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module Dummy
|
2
|
-
class WinRMTransport
|
3
|
-
attr_reader :httpcli
|
4
|
-
|
5
|
-
def initialize
|
6
|
-
@httpcli = HTTPClient.new
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
class WinRMService
|
11
|
-
attr_reader :xfer
|
12
|
-
|
13
|
-
def initialize
|
14
|
-
@xfer = WinRMTransport.new
|
15
|
-
end
|
16
|
-
|
17
|
-
def set_timeout(timeout); end
|
18
|
-
def open_shell; end
|
19
|
-
def run_command; end
|
20
|
-
def get_command_output; end
|
21
|
-
def cleanup_command; end
|
22
|
-
def close_shell; end
|
23
|
-
end
|
24
|
-
end
|