raykit 0.0.410 → 0.0.413
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 +8 -0
- data/lib/raykit/log.rb +3 -11
- data/lib/raykit/project.rb +1 -1
- data/lib/raykit.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80920bdacf73e47e03c2c21000dca436fe19cabdb9a9136e8c5661fa548d85b
|
4
|
+
data.tar.gz: 2b8305db3c13dfa56b40ded98118e7a7878ee42e55d73cc34ef82f59fef7c31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67dd3b1cf22be2087d3a810433411fbf8136841d3c20793d69e00aa5fee5569fa727d826d1ef88d637639deff5384a7dc1ad457a729b17c601b8727c6f30611a
|
7
|
+
data.tar.gz: dafecff8cc99a28c248e69e365a9b49d26e566b982f1fc8b2e09b244c01254b25fc1677ee5eaf09f264cbe13c88f5de644e6f2c952e27ffb3630c013aaaf539e
|
data/lib/raykit/command.rb
CHANGED
@@ -264,6 +264,14 @@ module Raykit
|
|
264
264
|
self
|
265
265
|
end
|
266
266
|
|
267
|
+
def log_to_file(filename)
|
268
|
+
File.delete(filename) if File.exists?(filename)
|
269
|
+
File.open(filename, "w") { |f|
|
270
|
+
f.puts output
|
271
|
+
f.puts error
|
272
|
+
}
|
273
|
+
end
|
274
|
+
|
267
275
|
def to_hash
|
268
276
|
hash = {}
|
269
277
|
hash[:command] = @command
|
data/lib/raykit/log.rb
CHANGED
@@ -55,14 +55,14 @@ module Raykit
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.show_table(symbols)
|
58
|
-
max_name_width =
|
59
|
-
max_value_width =
|
58
|
+
max_name_width = 0
|
59
|
+
max_value_width = 0
|
60
60
|
symbols.each { |s|
|
61
61
|
nvp = name_value_pair(s, binding)
|
62
62
|
name = nvp[0]
|
63
63
|
value = nvp[1]
|
64
64
|
max_name_width = name.length if (name.length > max_name_width)
|
65
|
-
max_value_width = value.length if (value.length >
|
65
|
+
max_value_width = value.length if (value.length > max_value_width)
|
66
66
|
}
|
67
67
|
header = " =".ljust(max_name_width + max_value_width + 5, "=")
|
68
68
|
puts header
|
@@ -76,11 +76,3 @@ module Raykit
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
79
|
-
|
80
|
-
#def show(symbol)
|
81
|
-
# show_binding(symbol, binding)
|
82
|
-
#end
|
83
|
-
|
84
|
-
#def show_binding(symbol, the_binding)
|
85
|
-
# show_value symbol.to_s, eval(symbol.to_s, the_binding)
|
86
|
-
#end
|
data/lib/raykit/project.rb
CHANGED
data/lib/raykit.rb
CHANGED
@@ -38,6 +38,14 @@ if defined?(RAYKIT_GLOBALS)
|
|
38
38
|
Raykit::TopLevel.run(command, false)
|
39
39
|
end
|
40
40
|
|
41
|
+
def make(artifact, command)
|
42
|
+
if (File.exists?(artifact))
|
43
|
+
puts " #{artifact} exists"
|
44
|
+
else
|
45
|
+
run(command)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
41
49
|
def start_task(task_name)
|
42
50
|
Raykit::Log.start_task(task_name)
|
43
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.413
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.3.7
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: ruby gem to support rake ci/cd tasks
|