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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29d0736fe0c4a14aac48efa417d50780d2f48e216662733a3a4d526e6b6ea917
4
- data.tar.gz: cd4485fb111391400af85845b9927a19a745b496411059d4f00eae9ab9ddcc1b
3
+ metadata.gz: 911c88699bdb5df9d9ad8ff701c67c355c51bb88a6067c2e8739500be9f29c08
4
+ data.tar.gz: f28193ec5c7c1a5e17311e5d193eb84c74dd7abcb1ac3a77927da26299e35f5f
5
5
  SHA512:
6
- metadata.gz: 03c21555b0be1dd75b89d4cf1f7d63eea0dafefb29fd1bb9af8c7d6da575a449575adba2b067e654fb8e8d9d654503d4b930046f27456ed3fe92c8375a26ea02
7
- data.tar.gz: a57aa49fcce002ef96be611b0ae70e4f284419d4c5da38609179f40a2fe207b2ee177dd104c3bf4dff2999fb01d8d638c62f99be08745e76169100bf0b3fc1ef
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
- puts("rsync cmd is #{cmd}")
234
+ logger.debug("rsync cmd is #{cmd}")
232
235
  `#{cmd}`
233
236
  end
234
237
 
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  module Kitchen
19
- VERSION = "3.0.0-1".freeze
19
+ VERSION = "3.0.0-2".freeze
20
20
  end
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 = ["Fletcher Nichol"]
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://kitchen.ci/"
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.1
4
+ version: 3.0.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
- - Fletcher Nichol
7
+ - Deept Shukla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
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://kitchen.ci/
504
+ homepage: https://github.com/deeptshukla/test-kitchen
505
505
  licenses:
506
506
  - Apache-2.0
507
507
  metadata: {}