vx-builder 0.3.6 → 0.3.7
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/vx/builder/script_builder/timeouts.rb +21 -0
- data/lib/vx/builder/script_builder.rb +2 -0
- data/lib/vx/builder/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3068ec11992c3b9bdabd2d4eb6ced778b23151d8
|
4
|
+
data.tar.gz: 6da22dba6cbf630e9c222885debf8c5b331cb152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c047a1082e15e900f199222b642beb0dffdfe5c1f9b1ebbbff3982078c6825bf18fc1e1c604007841d619858c0149b36c43557fcdd5997cf027b692aa3127aef
|
7
|
+
data.tar.gz: 96118b65e5d3e14344f9dce70a3f67aa96555c7ac0c8e97328f1c41bd3df03d67b77231f6c2e89aeaa62607afaaa49cdcdd0316ef94469ac61c971a8a7f3b469
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Vx
|
2
|
+
module Builder
|
3
|
+
class ScriptBuilder
|
4
|
+
|
5
|
+
class Timeouts < Base
|
6
|
+
|
7
|
+
def call(env)
|
8
|
+
if tm = env.source.vexor.read_timeout
|
9
|
+
env.init << "echo Vexor: set read timeout to #{tm} seconds"
|
10
|
+
end
|
11
|
+
if tm = env.source.vexor.timeout
|
12
|
+
env.init << "echo Vexor: set timeout to #{tm} seconds"
|
13
|
+
end
|
14
|
+
|
15
|
+
app.call(env)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -16,10 +16,12 @@ module Vx
|
|
16
16
|
autoload :Cache, File.expand_path("../script_builder/cache", __FILE__)
|
17
17
|
autoload :Services, File.expand_path("../script_builder/services", __FILE__)
|
18
18
|
autoload :Deploy, File.expand_path("../script_builder/deploy", __FILE__)
|
19
|
+
autoload :Timeouts, File.expand_path("../script_builder/timeouts", __FILE__)
|
19
20
|
|
20
21
|
include Common::Helper::Middlewares
|
21
22
|
|
22
23
|
middlewares do
|
24
|
+
use Builder::ScriptBuilder::Timeouts
|
23
25
|
use Builder::ScriptBuilder::Cache
|
24
26
|
use Builder::ScriptBuilder::Env
|
25
27
|
use Builder::ScriptBuilder::Services
|
data/lib/vx/builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vx-common
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- lib/vx/builder/script_builder/scala.rb
|
148
148
|
- lib/vx/builder/script_builder/script.rb
|
149
149
|
- lib/vx/builder/script_builder/services.rb
|
150
|
+
- lib/vx/builder/script_builder/timeouts.rb
|
150
151
|
- lib/vx/builder/task.rb
|
151
152
|
- lib/vx/builder/version.rb
|
152
153
|
- spec/fixtures/clojure.yml
|