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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bf26c20d771f4e30e13f6185e966b5c3a5fb49e
4
- data.tar.gz: a4e1a06311cb68741696d8a3dfa628c7f3518342
3
+ metadata.gz: f5bab0b720ffb29459abb2391cdbe16b5474b492
4
+ data.tar.gz: 3628b527f952ad1f883f568f618dbfc34b8ddb47
5
5
  SHA512:
6
- metadata.gz: bf13ccac9b6c0ad218390073594463f6b6d3fd7ee60c15b4c30523d5192f50d1cd76ec5f467256953a97697d8d05eb518430b01badb996ed6fbed73c5eac64b1
7
- data.tar.gz: ca3440bb9ad46712abd2832b0afa18a4d53d1a03105f0d43508b44517c4917fb722639d73cd6725e6a7b2d80b989dcefb147e9267c671c9dd6e4ea7d39e9b154
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
- cmd = "docker run -t -i --env RUBY=#{@opts.ruby} --env DB=#{@opts.database} --env REDMINE=#{@opts.redmine} --env PLUGIN=#{@opts.plugin} --env DEPENDENT=#{@opts.dependent} --env CODEPATH=/plugin --mount type=bind,source=#{`pwd`.chomp},target=/plugin redmineup/#{@opts.plugin} /root/run_for.sh $PLUGIN $RUBY $DB $REDMINE $DEPENDENT"
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
@@ -1,3 +1,3 @@
1
1
  module Cirun
2
- VERSION = "0.1.3"
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Malyshev