cirun 0.1.16 → 0.1.17

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: 24f4d3499a87637b7b04f45a97fd7c85f3449098bc3a386e9c15a110ecbc715b
4
- data.tar.gz: 006d525425e8deaaf9041c3b95c6c6f66f6016bbfdb84b7d30ecb20dc8a8d4b1
3
+ metadata.gz: e07280017ec130e3e0f1949443256e2f9f08756f9ef1121dfdf2dec6e2993095
4
+ data.tar.gz: 706d4324926944e53b0cdbfb1a9b7f55b9d0d340c241bf4fe24034587dd516b8
5
5
  SHA512:
6
- metadata.gz: 0f55269cda1daf336bb64f7d0e9b0f708369b3e401d0014ac76a5616c0840f757317ca876bae06d7676338266c59e0dae0da44b51621dbe1d55209ea80de8eb5
7
- data.tar.gz: 4fd7104df5e8cf66f1d865ccd9bc5cc76c0028b3c188c326e841bff3c9735a969f2857803e6d47c6ff61f47f5b981be49a98b17c458bebff085e2997b3af72e7
6
+ metadata.gz: 17e1c73e0668d2caa3c1925edcff17130c91252ab7c2cf8748834aa1b7cabc681105284d0d4c18015bc97fc10ea4de88b7fc6de2510e3c09d5bd3281ca597dd1
7
+ data.tar.gz: a9a877d2be7acfa4a622aeb5013232e868a4193a4bf6833a8859529061c2b70944272f47815b8c8c2b7ebc9dbd50a03cd7c8187b11c9404420ac09a0e7fd4503
data/cirun.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "tty-command", "~> 0.8.2"
28
29
  end
data/lib/cirun/runner.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'open3'
2
+ require 'tty-command'
2
3
 
3
4
  module Cirun
4
5
  class Runner
@@ -16,7 +17,7 @@ module Cirun
16
17
  update_image
17
18
  ruby_short = @opts.ruby.split('-').first
18
19
  cmd = "docker run -it --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"
19
- execute(cmd)
20
+ execute_tty(cmd)
20
21
  end
21
22
 
22
23
  private
@@ -30,5 +31,10 @@ module Cirun
30
31
  puts stderr.read
31
32
  end
32
33
  end
34
+
35
+ def execute_tty(cmd)
36
+ cmd = TTY::Command.new
37
+ cmd.run('git config --get remote.heroku.url')
38
+ end
33
39
  end
34
40
  end
data/lib/cirun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cirun
2
- VERSION = '0.1.16'.freeze
2
+ VERSION = '0.1.17'.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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Malyshev
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tty-command
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.2
41
55
  description:
42
56
  email:
43
57
  - Andrei.Malyshev@kodep.ru