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 +4 -4
- data/cirun.gemspec +1 -0
- data/lib/cirun/runner.rb +7 -1
- data/lib/cirun/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e07280017ec130e3e0f1949443256e2f9f08756f9ef1121dfdf2dec6e2993095
|
4
|
+
data.tar.gz: 706d4324926944e53b0cdbfb1a9b7f55b9d0d340c241bf4fe24034587dd516b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17e1c73e0668d2caa3c1925edcff17130c91252ab7c2cf8748834aa1b7cabc681105284d0d4c18015bc97fc10ea4de88b7fc6de2510e3c09d5bd3281ca597dd1
|
7
|
+
data.tar.gz: a9a877d2be7acfa4a622aeb5013232e868a4193a4bf6833a8859529061c2b70944272f47815b8c8c2b7ebc9dbd50a03cd7c8187b11c9404420ac09a0e7fd4503
|
data/cirun.gemspec
CHANGED
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
|
-
|
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
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.
|
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
|