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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fea10d0553974b0a0d94a3c3e7eeb384faee2ad1
4
- data.tar.gz: fe0c0a1f1717c92537b173f53f2371b67c9065b4
3
+ metadata.gz: 3068ec11992c3b9bdabd2d4eb6ced778b23151d8
4
+ data.tar.gz: 6da22dba6cbf630e9c222885debf8c5b331cb152
5
5
  SHA512:
6
- metadata.gz: 7f087d531c6b6188e3ae1f1f283334270fbf9d0c3f8004fa2a922c000ed88510b74624791fdbb77be06ab3e1ef8d4be2590897a79c5dced8105cefd7a532b57f
7
- data.tar.gz: c60dc3c1eb212913b60fda58638c0b33754d3a779c7ade8c6f9d1cdb12e868df7324e436a01993ea95ffd1d0add7bd9d8f50440779a1f5ceca3eb7b2dd29a5f3
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
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
4
4
  end
5
5
  end
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.6
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-29 00:00:00.000000000 Z
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