raykit 0.0.498 → 0.0.499
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/command.rb +6 -6
- data/lib/raykit/console.rb +12 -3
- data/lib/raykit/git/repositories.rb +6 -0
- data/lib/raykit/git/repository.rb +1 -1
- 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: 6f8c82957456dd5516ac89810b2447bd2c7ec16d98dfee3f29f78dae91bb01fd
|
4
|
+
data.tar.gz: 05fa934496a2857c9b19ba31a626b2ad8e3289895fdc7d8938f88a6d2191f584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d8bea6bca8fde247a11ff209436cf65df99c40a2fe1b1a4845c15dcacb0331bef4c9ddde7f091746d2987901bac6a2dfba2d571e352bee3bb22df1f143e7f6e
|
7
|
+
data.tar.gz: a82eb20db5aabd9a7afcd1b509ae742d9568212f8bfafad0f302393af6dcd82cd21656c26aa632977a78c9c534cb6412a7eee91ccd9603c195d87d98ceaa4b45
|
data/lib/raykit/command.rb
CHANGED
@@ -346,12 +346,12 @@ module Raykit
|
|
346
346
|
symbol = Rainbow(checkmark.encode("utf-8")).green
|
347
347
|
symbol = Rainbow(error.encode("utf-8")).red if @exitstatus != 0
|
348
348
|
cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
|
349
|
-
if !@exitstatus.zero?
|
350
|
-
|
351
|
-
|
352
|
-
else
|
353
|
-
|
354
|
-
end
|
349
|
+
#if !@exitstatus.zero?
|
350
|
+
s += "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
|
351
|
+
s += Rainbow(" #{@directory}").white + " "
|
352
|
+
#else
|
353
|
+
# s += "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} " + Rainbow("#{elapsed_str}").cyan
|
354
|
+
#end
|
355
355
|
|
356
356
|
if !@exitstatus.zero?
|
357
357
|
if @output.length > 0
|
data/lib/raykit/console.rb
CHANGED
@@ -137,13 +137,22 @@ module Raykit
|
|
137
137
|
errors = []
|
138
138
|
puts "work: found #{work_repositories.length} matching urls"
|
139
139
|
work_repositories.each do |url|
|
140
|
-
|
141
|
-
puts " "
|
142
|
-
|
140
|
+
default_command = "rake default"
|
141
|
+
puts "work: #{url} #{default_command}"
|
142
|
+
repo = Raykit::Git::Repository.new(url)
|
143
|
+
cmd = repo.work default_command
|
144
|
+
puts cmd.to_s
|
145
|
+
#exitstatus = work_url(url)
|
146
|
+
#puts " " if @opts.verbose?
|
147
|
+
#return exitstatus if @opts[:stop] && exitstatus != 0
|
143
148
|
end
|
144
149
|
0
|
145
150
|
end
|
146
151
|
|
152
|
+
#puts "\nwork \"rake default\""
|
153
|
+
#cmd = repo.work "rake default"
|
154
|
+
#puts cmd.to_s
|
155
|
+
|
147
156
|
def work_url(url)
|
148
157
|
return 0 if url == "https://gitlab.com/lou-parslow/raykit.git"
|
149
158
|
|
@@ -63,6 +63,12 @@ module Raykit
|
|
63
63
|
git_dirs.insert(0, dir) if dir.length.positive?
|
64
64
|
end
|
65
65
|
end
|
66
|
+
Dir.chdir(Environment.home_dir) do
|
67
|
+
Dir.glob("**/.git") do |git_dir|
|
68
|
+
dir = File.expand_path("..", git_dir)
|
69
|
+
git_dirs.insert(0, dir) if dir.length.positive?
|
70
|
+
end
|
71
|
+
end
|
66
72
|
|
67
73
|
git_dirs.each do |git_dir|
|
68
74
|
dir = Raykit::Git::Directory.new(git_dir)
|
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.499
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.4.
|
151
|
+
rubygems_version: 3.4.20
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: ruby gem to support rake ci/cd tasks
|