cirun 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cirun/runner.rb +2 -1
- data/lib/cirun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5bab0b720ffb29459abb2391cdbe16b5474b492
|
4
|
+
data.tar.gz: 3628b527f952ad1f883f568f618dbfc34b8ddb47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c39f88f18fbaea7e979f00baede234ea5cdb4f14e4779c348831fa1d0d4fb28f4626873cc431c06cf7ae4ed315e577b32df570f8c3835b78d715ad976914c92
|
7
|
+
data.tar.gz: 245218b037224eed6dd04aec6321324a71b11d85d8fe3b9bc4165ed035034ab323d223f185b062fd17dd61e63b7ad25785a1cc977d8d29ff7059a2f17dfb1f82
|
data/lib/cirun/runner.rb
CHANGED
@@ -5,7 +5,8 @@ module Cirun
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def run
|
8
|
-
|
8
|
+
ruby_short = @opts.ruby.split('-').first
|
9
|
+
cmd = "docker run -t -i --env RUBY=ruby-#{ruby_short} --env DB=#{@opts.database} --env REDMINE=redmine-#{@opts.redmine} --env PLUGIN=#{@opts.plugin} --env DEPENDENT=#{@opts.dependent} --env CODEPATH=/plugin --mount type=bind,source=#{`pwd`.chomp},target=/var/www/ruby-#{ruby_short}/redmine-#{@opts.redmine}/plugins/#{@opts.plugin} redmineup/#{@opts.plugin} /root/run_local.sh"
|
9
10
|
puts "Running:\n#{cmd}"
|
10
11
|
%x[ #{cmd} ]
|
11
12
|
end
|
data/lib/cirun/version.rb
CHANGED