raykit 0.0.160 → 0.0.161
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/console.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b7e2f4398f8d6f1defec2457bc55d104b86ee1d9d4fb564f1fe2cdc8ad398a
|
4
|
+
data.tar.gz: d3ab6fdc8fe8bd61fde5fe15bfee50b830613650281d69bc241f6300a42730ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4e151123700676c88167a80a764e3124cb8d289192eb4ff652c1f93520ebd96cbe5d9b72fc1be784fdf43d26c60fdaba85fd5c5ff5de6d40019f38700f84a1d
|
7
|
+
data.tar.gz: c619e89ec1ad862d559096bb2425a5b4ef312702df0a8c393d04e29555a54b57638c68d4346a3e40f6c0d80bc99a2be57ed1763ac4a68cfe985963de6d5355bf
|
data/lib/raykit/console.rb
CHANGED
@@ -10,7 +10,8 @@ module Raykit
|
|
10
10
|
@opts = Slop.parse do |o|
|
11
11
|
o.string '-t','--task','rake task', default: 'default'
|
12
12
|
o.bool '-v','--verbose','print detailed output', default: false
|
13
|
-
o.bool '-q','--
|
13
|
+
o.bool '-q','--quiet','minimal output', default: false
|
14
|
+
o.bool '-s','--stop','stop on error', default: true
|
14
15
|
end
|
15
16
|
|
16
17
|
if(opts.verbose?)
|
@@ -137,19 +138,19 @@ module Raykit
|
|
137
138
|
work_repositories.each{|url|
|
138
139
|
exitstatus = work_url(url)
|
139
140
|
puts ' ' if(@opts.verbose?)
|
140
|
-
return exitstatus if(@opts[:
|
141
|
+
return exitstatus if(@opts[:stop] && exitstatus != 0)
|
141
142
|
}
|
142
143
|
0
|
143
144
|
end
|
144
145
|
|
145
146
|
def work_url(url)
|
146
147
|
return 0 if(url == "https://gitlab.com/lou-parslow/raykit.git")
|
147
|
-
puts Rainbow(url).yellow.bright
|
148
|
+
#puts Rainbow(url).yellow.bright
|
148
149
|
repo=Raykit::Git::Repository.new(url)
|
149
150
|
work=Raykit::Git::Directory.new(repo.get_dev_dir('work'))
|
150
151
|
if(!Dir.exist?(work.directory))
|
151
152
|
clone = Command.new("git clone #{url} #{work.directory}")
|
152
|
-
puts clone.summary if(
|
153
|
+
puts clone.summary if(!@opts.quiet?)
|
153
154
|
if(clone.exitstatus != 0)
|
154
155
|
clone.details
|
155
156
|
return clone.exitstatus
|
@@ -159,7 +160,7 @@ module Raykit
|
|
159
160
|
Dir.chdir(work.directory) do
|
160
161
|
if(File.exist?('rakefile.rb'))
|
161
162
|
rake = Raykit::Command.new("rake #{@opts[:task]}")
|
162
|
-
rake.summary(true) if(
|
163
|
+
rake.summary(true) if(!@opts.quiet?) || rake.exitstatus != 0
|
163
164
|
if(rake.exitstatus != 0)
|
164
165
|
rake.details
|
165
166
|
rake.summary true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.161
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.0.
|
117
|
+
rubygems_version: 3.0.3
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: ruby gem to support rake ci/cd tasks
|