kitchen-sync 2.2.0 → 2.2.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/kitchen-sync/version.rb +1 -1
- data/lib/kitchen/transport/rsync.rb +10 -0
- data/lib/kitchen/transport/sftp.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d92f830da3a20aa2b16cbe285b484974301734cb
|
|
4
|
+
data.tar.gz: f4ddbaef0d6d7c1e1f62947a3d7db6cfc5fd08b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: decac92f7062ce9301096f557e88d86fec816087ad8edaacbacf2a2707dce686d34c1fd22efd4919e70fb4904fbf1df2f4b542f51e899c203f972074562de47f
|
|
7
|
+
data.tar.gz: e0eac175bd0e9616d92a5a04d50e9cef1ae21be9468f6901ca4cf866d1f8d7233531b589c882966432737967a45ac490e5f5334abe19cfa825a3f1a10546e625
|
data/CHANGELOG.md
CHANGED
data/lib/kitchen-sync/version.rb
CHANGED
|
@@ -24,6 +24,16 @@ require 'kitchen-sync/core_ext'
|
|
|
24
24
|
module Kitchen
|
|
25
25
|
module Transport
|
|
26
26
|
class Rsync < Ssh
|
|
27
|
+
def finalize_config!(instance)
|
|
28
|
+
super.tap do
|
|
29
|
+
if defined?(Kitchen::Verifier::Inspec) && instance.verifier.is_a?(Kitchen::Verifier::Inspec)
|
|
30
|
+
instance.verifier.send(:define_singleton_method, :runner_options_for_rsync) do |config_data|
|
|
31
|
+
runner_options_for_ssh(config_data)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
27
37
|
# Copy-pasta from Ssh#create_new_connection because I need the Rsync
|
|
28
38
|
# connection class.
|
|
29
39
|
# Tracked in https://github.com/test-kitchen/test-kitchen/pull/726
|
|
@@ -34,6 +34,16 @@ module Kitchen
|
|
|
34
34
|
|
|
35
35
|
default_config :ruby_path, '/opt/chef/embedded/bin/ruby'
|
|
36
36
|
|
|
37
|
+
def finalize_config!(instance)
|
|
38
|
+
super.tap do
|
|
39
|
+
if defined?(Kitchen::Verifier::Inspec) && instance.verifier.is_a?(Kitchen::Verifier::Inspec)
|
|
40
|
+
instance.verifier.send(:define_singleton_method, :runner_options_for_sftp) do |config_data|
|
|
41
|
+
runner_options_for_ssh(config_data)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
37
47
|
# Copy-pasta from Ssh#create_new_connection because I need the SFTP
|
|
38
48
|
# connection class.
|
|
39
49
|
# Tracked in https://github.com/test-kitchen/test-kitchen/pull/726
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-sync
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Noah Kantrowitz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
108
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 2.6.
|
|
109
|
+
rubygems_version: 2.6.13
|
|
110
110
|
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: Improved file transfers for for test-kitchen
|