raykit 0.0.351 → 0.0.354
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/raykit/project.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b38c6583017de88da9d35a56cdd7d2ecfa2d918219c9a349ae5b7dbc6fd1c3a
|
4
|
+
data.tar.gz: f32635b0ff02c5b2896d03cfa33c7036f0e6e10a7353cc31bfa543664caa6302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e003f9cc34df7a36bfcadbec6e7f14314d4f9c4c63541488993b24f7487f3b4d6511b49103e1c4bc6732bf96c7b67c45c637099f012cfc237222d357ad268dc
|
7
|
+
data.tar.gz: 1990d8ba48621068ddabb42448869b1b5abb29426579d1b681391da7a9ff9db1b2df6926085f7a561670b2371790dbcb4182ff8b55d34f2a4d5ebbffe904a1b3
|
data/lib/raykit/project.rb
CHANGED
@@ -13,11 +13,13 @@ module Raykit
|
|
13
13
|
@remote
|
14
14
|
@repository
|
15
15
|
@git_directory
|
16
|
+
@timeout
|
16
17
|
|
17
18
|
# @log
|
18
19
|
# @commit_message_filename
|
19
20
|
|
20
21
|
def initialize
|
22
|
+
@timeout = 1000 * 60 * 15
|
21
23
|
@verbose = false
|
22
24
|
@timer = Raykit::Timer.new
|
23
25
|
@remote = ""
|
@@ -286,9 +288,8 @@ module Raykit
|
|
286
288
|
if command.is_a?(Array)
|
287
289
|
command.each { |subcommand| run(subcommand, quit_on_failure) }
|
288
290
|
else
|
289
|
-
cmd = Command.new(command).set_timeout(
|
291
|
+
cmd = Command.new(command).set_timeout(@timeout).run
|
290
292
|
cmd.summary
|
291
|
-
cmd.save
|
292
293
|
elapsed_str = Timer.get_elapsed_str(cmd.elapsed, 0)
|
293
294
|
if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
|
294
295
|
else
|
@@ -298,6 +299,7 @@ module Raykit
|
|
298
299
|
puts
|
299
300
|
abort "#{Rainbow(elapsed_str).red.bright} #{Rainbow(cmd.command).white}" if quit_on_failure
|
300
301
|
end
|
302
|
+
cmd.save
|
301
303
|
cmd
|
302
304
|
end
|
303
305
|
end
|