all_images 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/all_images.gemspec +4 -6
- data/lib/all_images/app.rb +11 -8
- data/lib/all_images/config.rb +1 -1
- data/lib/all_images/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993e52d612a767d40287b1525edb030734dfef5ffc5579f5db77cf7852cfde39
|
4
|
+
data.tar.gz: c937e2239fedbea45f833b5ee632ba1201b33d36eefb6ec48d254ada43370c22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d1940d49661c954471978cafa28f72cf384385ef9049678394a8bd3dfb0afe2cd7546db5977b2bf052d7e1d6be2407fef69009b46fcc9285da2d8c1454de969
|
7
|
+
data.tar.gz: 05d3829c56d9624dc72be17536972b791f99545eb0e4add3e1b9f7784ac8ed009d9cace8968ffa5b35bbbe7c10c72e1b7df3cfa252e60f348e40d667081f655e
|
data/Rakefile
CHANGED
data/all_images.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: all_images 0.2.
|
2
|
+
# stub: all_images 0.2.2 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "all_images".freeze
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.2"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2023-04-19"
|
12
12
|
s.description = "A script that runs a script in all of the configured docker images".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["all_images".freeze]
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.homepage = "http://github.com/flori/all_images".freeze
|
18
18
|
s.licenses = ["MIT".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "AllImages -- Runs a script in all of the docker images".freeze, "--main".freeze, "README.md".freeze]
|
20
|
-
s.rubygems_version = "3.3.
|
20
|
+
s.rubygems_version = "3.3.26".freeze
|
21
21
|
s.summary = "Runs a script in all of the docker images".freeze
|
22
22
|
s.test_files = ["spec/spec_helper.rb".freeze]
|
23
23
|
|
@@ -30,7 +30,6 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
|
31
31
|
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
32
32
|
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
33
|
-
s.add_development_dependency(%q<debug>.freeze, [">= 0"])
|
34
33
|
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
|
35
34
|
s.add_runtime_dependency(%q<term-ansicolor>.freeze, [">= 0"])
|
36
35
|
else
|
@@ -38,7 +37,6 @@ Gem::Specification.new do |s|
|
|
38
37
|
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
39
38
|
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
40
39
|
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
41
|
-
s.add_dependency(%q<debug>.freeze, [">= 0"])
|
42
40
|
s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
|
43
41
|
s.add_dependency(%q<term-ansicolor>.freeze, [">= 0"])
|
44
42
|
end
|
data/lib/all_images/app.rb
CHANGED
@@ -10,15 +10,19 @@ class AllImages::App
|
|
10
10
|
|
11
11
|
def initialize(args)
|
12
12
|
@args = args.dup
|
13
|
-
@command =
|
13
|
+
@command = pick_command
|
14
14
|
end
|
15
15
|
|
16
16
|
def run
|
17
17
|
result = 0
|
18
18
|
@config = load_config or return 23
|
19
19
|
|
20
|
-
|
20
|
+
case @command
|
21
|
+
when 'ls'
|
21
22
|
puts Array(@config['images']).map(&:first)
|
23
|
+
when 'help'
|
24
|
+
commands = %w[ ls help run debug run_all ].sort
|
25
|
+
puts "Usage: #{File.basename($0)} #{commands * ?|} IMAGE"
|
22
26
|
else
|
23
27
|
Array(@config['images']).each do |image, script|
|
24
28
|
case @command
|
@@ -54,21 +58,20 @@ class AllImages::App
|
|
54
58
|
sh 'docker rm -f all_images >/dev/null'
|
55
59
|
end
|
56
60
|
|
57
|
-
def
|
58
|
-
case command = @args.
|
59
|
-
when nil
|
61
|
+
def pick_command
|
62
|
+
case command = @args.shift
|
63
|
+
when 'run_all', nil
|
60
64
|
'run_all'
|
61
65
|
when 'ls'
|
62
|
-
@args.shift
|
63
66
|
'ls'
|
64
67
|
when 'run'
|
65
|
-
@args.shift
|
66
68
|
@selected = @args.shift or fail "Usage: #{File.basename($0)} #{command} IMAGE"
|
67
69
|
'run_selected'
|
68
70
|
when 'debug'
|
69
|
-
@args.shift
|
70
71
|
@selected = @args.shift or fail "Usage: #{File.basename($0)} #{command} IMAGE"
|
71
72
|
'debug_selected'
|
73
|
+
when 'help'
|
74
|
+
'help'
|
72
75
|
end
|
73
76
|
end
|
74
77
|
|
data/lib/all_images/config.rb
CHANGED
@@ -19,11 +19,11 @@ module AllImages::Config
|
|
19
19
|
rake test
|
20
20
|
|
21
21
|
images:
|
22
|
+
ruby:3.2-alpine: *script
|
22
23
|
ruby:3.1-alpine: *script
|
23
24
|
ruby:3.0-alpine: *script
|
24
25
|
ruby:2.7-alpine: *script
|
25
26
|
ruby:2.6-alpine: *script
|
26
|
-
ruby:2.5-alpine: *script
|
27
27
|
end
|
28
28
|
|
29
29
|
def init(filename)
|
data/lib/all_images/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: all_images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: debug
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: tins
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
140
|
- !ruby/object:Gem::Version
|
155
141
|
version: '0'
|
156
142
|
requirements: []
|
157
|
-
rubygems_version: 3.3.
|
143
|
+
rubygems_version: 3.3.26
|
158
144
|
signing_key:
|
159
145
|
specification_version: 4
|
160
146
|
summary: Runs a script in all of the docker images
|