kitchen-transport-speedy 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +33 -0
- data/kitchen-transport-speedy.gemspec +2 -2
- data/lib/kitchen/transport/speedy.rb +1 -1
- data/lib/kitchen/transport/speedy/version.rb +1 -1
- data/lib/kitchen/transport/speedy_ssh.rb +4 -4
- metadata +12 -13
- data/.travis.yml +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aba415941e5778730702ff34f009ed00428a50f59e57fc6a3d5006dda5da278
|
4
|
+
data.tar.gz: fece1b728740bdb39908451294dc368c1dee7126093f05fa6cc7b8a36f562521
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc37123bb9597e9bbe8a50003acfa5f2062223becc8c5d3428dba536d23a2fb91f9e18184280bde89e616b03c750302508bd9d9f138ad8c39b9175b5fe298dc3
|
7
|
+
data.tar.gz: 758a1dd62582ff60ab5537870ae56fa151a553d5c69e6b13f43c20efe9ab0fba280eca062d7d53b637ac675e7e7f0386f68695cefbf4b2cf52e6e08f54860b37
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build + Publish
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
permissions:
|
13
|
+
contents: read
|
14
|
+
packages: write
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby 2.6
|
19
|
+
uses: actions/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: 2.6.x
|
22
|
+
|
23
|
+
- name: Publish to RubyGems
|
24
|
+
run: |
|
25
|
+
mkdir -p $HOME/.gem
|
26
|
+
touch $HOME/.gem/credentials
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push *.gem
|
31
|
+
env:
|
32
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
33
|
+
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.add_dependency 'test-kitchen'
|
18
18
|
|
19
|
-
spec.add_development_dependency "bundler"
|
19
|
+
spec.add_development_dependency "bundler"
|
20
20
|
spec.add_development_dependency "rake"
|
21
|
-
spec.add_development_dependency "rspec"
|
21
|
+
spec.add_development_dependency "rspec"
|
22
22
|
end
|
@@ -49,7 +49,7 @@ module Kitchen
|
|
49
49
|
if ::File.directory?(local)
|
50
50
|
file_count = ::Dir.glob(::File.join(local, '**/*')).size
|
51
51
|
logger.debug("#{local} contains #{file_count}")
|
52
|
-
archive_basename = ::File.basename(local) + '.
|
52
|
+
archive_basename = ::File.basename(local) + '.tgz'
|
53
53
|
archive = ::File.join(::File.dirname(local), archive_basename)
|
54
54
|
Mixlib::ShellOut.new(archive_locally(local, archive)).run_command.error!
|
55
55
|
execute(ensure_remotedir_exists(remote))
|
@@ -28,12 +28,12 @@ module Kitchen
|
|
28
28
|
include SpeedyConnectionBase
|
29
29
|
|
30
30
|
def valid_local_requirements?
|
31
|
-
!Mixlib::ShellOut.new("which tar > /dev/null").run_command.error?
|
31
|
+
!Mixlib::ShellOut.new("(which tar && which gzip) > /dev/null").run_command.error?
|
32
32
|
end
|
33
33
|
|
34
34
|
def valid_remote_requirements?
|
35
35
|
begin
|
36
|
-
execute("which tar > /dev/null")
|
36
|
+
execute("(which tar && which gzip) > /dev/null")
|
37
37
|
true
|
38
38
|
rescue => e
|
39
39
|
logger.debug(e)
|
@@ -45,11 +45,11 @@ module Kitchen
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def archive_locally(path, archive_path)
|
48
|
-
"tar -
|
48
|
+
"tar -czf #{archive_path} -C #{::File.dirname(path)} #{::File.basename(path)}"
|
49
49
|
end
|
50
50
|
|
51
51
|
def dearchive_remotely(archive_basename, remote)
|
52
|
-
"tar -
|
52
|
+
"tar -xzf #{::File.join(remote, archive_basename)} -C #{remote}"
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-transport-speedy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grégoire Seux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- g.seux@criteo.com
|
@@ -73,9 +73,9 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/workflows/publish.yml"
|
76
77
|
- ".gitignore"
|
77
78
|
- ".rspec"
|
78
|
-
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE
|
81
81
|
- README.md
|
@@ -102,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
|
106
|
-
rubygems_version: 2.7.6
|
105
|
+
rubygems_version: 3.0.3.1
|
107
106
|
signing_key:
|
108
107
|
specification_version: 4
|
109
108
|
summary: Fast transport for test-kitchen using archiving
|
data/.travis.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3.0
|
4
|
-
before_install: gem install bundler -v 1.11.2
|
5
|
-
deploy:
|
6
|
-
provider: rubygems
|
7
|
-
api_key:
|
8
|
-
secure: OsWBNLndrR49ZwQmRNbJIqFiyEjZG5mosZF2d8aFpKwGpfu0EplQjmPeXokPSvQIzuBUVTh5a+pCZaESyiNlwHOs4b3olu8ifhPsJfs9FaZHkUV8enkHhOcuziqpVpp7LLqvjaBR42RTaOAAipKCe2BJP7ZQxJCf0heDBdOJDE7R/LLdFS02wi1i9FOjYUS+/DZNpoySAN2y+uiQ36Rhq6ZcsmiEoO24jWtOhTK7uGM41pfAAgeFGNAJxU+bC3G703cuUtllqaz+VHLMbiB6nAr8LzHZLFsiM2dcIFnu1M4jTVyc6dfYvSNAYTWqwgsVM4XYAcA83Qo/5479YBQoiMfhi0Ujo3fE6fZ2zRNOYMv/sbge4wc3mQtZickm5ofIzX+78Ch7if+Vu+lNFl7sKUoFvsl15IgyQdCJvss/zGlTchs2WpcMftFJs3vKfA+c8x5q3OWvmQNG2dssjz28eTf/fk1L6RzPowhob270xDbmDuQ6TXbovMEjleq62N41w8EL/uVwtKzTLjTVUyKtWU+sipCZuwTFvFNCmWGo8qszT6Jck75MPoxcneVdbz1oMPfadRxyMTnR+cWKO5mYHUDQJS4uF6Vlpn5+dF/plGngKh+tF5XFMVfpgFzhI1UXqLnPfxKHJK6MCTKJied5xYFQ9X1IdQtZQ/57M87yZpw=
|
9
|
-
gem: kitchen-transport-speedy
|
10
|
-
on:
|
11
|
-
tags: true
|
12
|
-
repo: criteo/kitchen-transport-speedy
|