Commit e49acf1 1 parent 291a0d7 commit e49acf1 Copy full SHA for e49acf1
File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,26 @@ TRACER_VERSIONS = %w[
11
11
jruby-9.2-latest
12
12
] . freeze
13
13
14
- desc 'Update gemfiles/* files based on Appraisals and Gemfile changes, ' \
14
+ desc 'Installs gems based on Appraisals and Gemfile changes, ' \
15
+ 'accepts list of tracer versions as task argument, defaults to all versions.'
16
+ task :install_appraisal_gemfiles do |_task , args |
17
+ tracer_version_arg = args . to_a
18
+ versions = tracer_version_arg . empty? ? TRACER_VERSIONS : tracer_version_arg
19
+
20
+ versions . each do |version |
21
+ sh "docker-compose run --rm tracer-#{ version } /bin/bash -c " \
22
+ "'rm -f Gemfile.lock && bundle install && bundle exec appraisal install'"
23
+ end
24
+ end
25
+
26
+ desc 'Update ALL gems based on Appraisals and Gemfile changes, ' \
15
27
'accepts list of tracer versions as task argument, defaults to all versions.'
16
28
task :update_appraisal_gemfiles do |_task , args |
17
29
tracer_version_arg = args . to_a
18
30
versions = tracer_version_arg . empty? ? TRACER_VERSIONS : tracer_version_arg
19
31
20
32
versions . each do |version |
21
- cmd = "docker-compose run --rm tracer-#{ version } /bin/bash -c " \
33
+ sh "docker-compose run --rm tracer-#{ version } /bin/bash -c " \
22
34
"'rm -f Gemfile.lock && bundle install && bundle exec appraisal update'"
23
-
24
- puts cmd
25
- sh cmd
26
35
end
27
36
end
You can’t perform that action at this time.
0 commit comments