test-kitchen-rsync 3.0.0.pre.1 → 3.0.0.pre.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 +4 -4
- data/lib/kitchen/transport/ssh.rb +4 -1
- data/lib/kitchen/version.rb +1 -1
- data/test-kitchen.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 911c88699bdb5df9d9ad8ff701c67c355c51bb88a6067c2e8739500be9f29c08
|
4
|
+
data.tar.gz: f28193ec5c7c1a5e17311e5d193eb84c74dd7abcb1ac3a77927da26299e35f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b72bfcecf1f9b7f1125f4d3925d5bee703e891f84c9bbdfd16ae929ceb309bbd662c51bfc318dc742d45e9f6f49fd443360fd017acff743be1df60c64f1498c2
|
7
|
+
data.tar.gz: 4dcda1275ae88b540e6005db58849ed51f8cab7ee9dad35eacb01de6d4d7da12eb35cfd3af554306f8ca2e2e9abc0542ab62ca6f6ca42a2eb98a55ce94a16e79
|
@@ -227,8 +227,11 @@ module Kitchen
|
|
227
227
|
ssh_key = options[:keys].first
|
228
228
|
user = options[:user]
|
229
229
|
port = options[:port]
|
230
|
+
# Installing rsync if not available
|
231
|
+
rsync_install_cmd = %{ssh -o StrictHostKeyChecking=no -p #{port} -i #{ssh_key} #{user}@#{hostname} "which rsync || ( ( sudo apt-get update && sudo apt-get -y install rsync ) || ( sudo yum update && sudo yum -y install rsync ) || ( sudo dnf update && sudo dnf -y install rsync ) || ( sudo pkg update && sudo pkg install rsync ) || ( sudo apk update && sudo apk add rsync ) )"}
|
232
|
+
`#{rsync_install_cmd}`
|
230
233
|
cmd = "rsync -av -e 'ssh -o StrictHostKeyChecking=no -p #{port} -i #{ssh_key}' #{sandbox_path}/ #{user}@#{hostname}:#{root_path}"
|
231
|
-
|
234
|
+
logger.debug("rsync cmd is #{cmd}")
|
232
235
|
`#{cmd}`
|
233
236
|
end
|
234
237
|
|
data/lib/kitchen/version.rb
CHANGED
data/test-kitchen.gemspec
CHANGED
@@ -7,13 +7,13 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.name = "test-kitchen-rsync"
|
8
8
|
gem.version = Kitchen::VERSION
|
9
9
|
gem.license = "Apache-2.0"
|
10
|
-
gem.authors = ["
|
10
|
+
gem.authors = ["Deept Shukla"]
|
11
11
|
gem.email = ["fnichol@nichol.ca"]
|
12
12
|
gem.description = "Test Kitchen is an integration tool for developing " \
|
13
13
|
"and testing infrastructure code and software on " \
|
14
14
|
"isolated target platforms."
|
15
15
|
gem.summary = gem.description
|
16
|
-
gem.homepage = "https://
|
16
|
+
gem.homepage = "https://github.com/deeptshukla/test-kitchen"
|
17
17
|
|
18
18
|
# The gemfile and gemspec are necessary for appbundler in ChefDK / Workstation
|
19
19
|
gem.files = %w{LICENSE test-kitchen.gemspec Gemfile Rakefile} + Dir.glob("{bin,lib,templates,support}/**/*")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-kitchen-rsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.pre.
|
4
|
+
version: 3.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Deept Shukla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -501,7 +501,7 @@ files:
|
|
501
501
|
- templates/init/chefignore.erb
|
502
502
|
- templates/init/kitchen.yml.erb
|
503
503
|
- test-kitchen.gemspec
|
504
|
-
homepage: https://
|
504
|
+
homepage: https://github.com/deeptshukla/test-kitchen
|
505
505
|
licenses:
|
506
506
|
- Apache-2.0
|
507
507
|
metadata: {}
|