Sha256: 8865aab63433d9787954450bd33ca1d1e2aa77444875b78124189ae7787ca641

Contents?: true

Size: 427 Bytes

Versions: 69

Compression:

Stored size: 427 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      class Timeouts < Base

        def call(env)
          if tm = env.source.vexor.read_timeout
            env.init << "echo Vexor: set read timeout to #{tm} seconds"
          end
          if tm = env.source.vexor.timeout
            env.init << "echo Vexor: set timeout to #{tm} seconds"
          end

          app.call(env)
        end

      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
vx-builder-0.5.19 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.18 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.17 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.16 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.15 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.14 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.13 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.12 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.11 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.10 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.9 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.8 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.7 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.6 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.5 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.4 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.3 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.2 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.1 lib/vx/builder/script_builder/timeouts.rb
vx-builder-0.5.0 lib/vx/builder/script_builder/timeouts.rb