cirun 0.1.11 → 0.1.12

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
  SHA256:
3
- metadata.gz: 8d88abc7cb39e165401509e996304a1e768ee7284044fc010f9cd5e373f08ce8
4
- data.tar.gz: 284598f025cfdf89b5fdb965db4ed42a16e771f12f6de1d846a7815f89a2076d
3
+ metadata.gz: d99ecfb410df9d3d43419a8edb3e36f3b1e56260044a45252dbf3dcfcf14061d
4
+ data.tar.gz: aafb075066e97a6d412c3be411c833ffa529807ab062e4e0ab74fd60b0bb01fe
5
5
  SHA512:
6
- metadata.gz: d15a49b651768cecda28937f80ae5309584210275f6d50827fc07e42de90df2ac34b050c73839dfafbdaa3b7b3a1a46f24e6d67d8a218a1593860d3b9ef77b28
7
- data.tar.gz: 0ce3bdab70167cc308dd37ac2fa4d36d52744aa26625288c397e716f864b1dec4b2619e7304867d92724ae14fe12a4430e8659a6a1f47b445665cf78dc3d801e
6
+ metadata.gz: 3b16333dca3793fbd031f3fdf289a0f8dc22e861b3ae114e8b98fcbf42d074e5824dbf5bd2f5d54b52088ea681aee590aee9c5cf3abb38b0a0f07a969362195f
7
+ data.tar.gz: 2eba82a64d6a3152d9e1d00e1f66cda4286f34d1644a01b29e7fea9ae3edc11032025343c4ddd2849aace9202d4fe13c47aa5502e8595ed614f30f229945dedf
data/lib/cirun/runner.rb CHANGED
@@ -5,11 +5,12 @@ module Cirun
5
5
  end
6
6
 
7
7
  def update_image
8
- cmd = "docker pull redmineup/#{@opts.plugin}"
9
- puts `#{cmd}`
8
+ cmd = "docker pull redmineup/#{@opts.plugin}"
9
+ puts `#{cmd}`
10
10
  end
11
11
 
12
12
  def run
13
+ update_image
13
14
  ruby_short = @opts.ruby.split('-').first
14
15
  cmd = "docker run -t --env RUBY_VERSION=ruby-#{ruby_short} --env DB=#{@opts.database} --env REDMINE=redmine-#{@opts.redmine} --env PLUGIN=#{@opts.plugin} --env DEPENDENT=#{@opts.dependent} --mount type=bind,source=#{`pwd`.chomp},target=/var/www/ruby-#{ruby_short}/#{@opts.database}/redmine-#{@opts.redmine}/plugins/#{@opts.plugin} redmineup/#{@opts.plugin} /root/run_local.sh"
15
16
  puts "Running:\n#{cmd}"
data/lib/cirun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cirun
2
- VERSION = '0.1.11'.freeze
2
+ VERSION = '0.1.12'.freeze
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Malyshev