raykit 0.0.351 → 0.0.352
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 +3 -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: 84c294e06095640a9c67d4b98633907cf4dbb03d0f5bb9a521f7609045542fa7
|
4
|
+
data.tar.gz: a36aa4be6042e998937805cdfa1fd68b3e90e9249481d6070710d4c6330a7bee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb7d185740c2b2ed5329158615f14ecf3f9921b4a4c1ed66700290c04d460a78933e823320face47d6328e20b6851dbc0d14697086bc98868278667cc8875c2
|
7
|
+
data.tar.gz: ffd783e2598d1eb313bbab87e9247732da6d5964365b719c0ff7b53eb13281945fb307950a92c9e7fe8d8e2c9c78814b46918fa48a70e95cb7b23513fe54ea5d
|
data/lib/raykit/project.rb
CHANGED
@@ -6,7 +6,7 @@ RAKE_DIRECTORY = Rake.application.original_dir
|
|
6
6
|
|
7
7
|
module Raykit
|
8
8
|
class Project
|
9
|
-
attr_accessor :name, :timer, :verbose, :target
|
9
|
+
attr_accessor :name, :timer, :verbose, :target, :timeout
|
10
10
|
|
11
11
|
@directory
|
12
12
|
@version
|
@@ -18,6 +18,7 @@ module Raykit
|
|
18
18
|
# @commit_message_filename
|
19
19
|
|
20
20
|
def initialize
|
21
|
+
@timeout = 1000 * 60 * 15
|
21
22
|
@verbose = false
|
22
23
|
@timer = Raykit::Timer.new
|
23
24
|
@remote = ""
|
@@ -286,7 +287,7 @@ module Raykit
|
|
286
287
|
if command.is_a?(Array)
|
287
288
|
command.each { |subcommand| run(subcommand, quit_on_failure) }
|
288
289
|
else
|
289
|
-
cmd = Command.new(command).set_timeout(
|
290
|
+
cmd = Command.new(command).set_timeout(@timeout).run
|
290
291
|
cmd.summary
|
291
292
|
cmd.save
|
292
293
|
elapsed_str = Timer.get_elapsed_str(cmd.elapsed, 0)
|