Sha256: ce682c5d862b0a06e16121a218123c1e8e543356cfc3dc582ed01632dd735b51

Contents?: true

Size: 663 Bytes

Versions: 11

Compression:

Stored size: 663 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      Script = Struct.new(:app) do

        include Helper::TraceShCommand

        def call(env)
          env.source.before_install.each do |c|
            env.before_install << trace_sh_command(c)
          end

          env.source.before_script.each do |c|
            env.before_script << trace_sh_command(c)
          end

          env.source.script.each do |c|
            env.script << trace_sh_command(c)
          end

          env.source.after_success.each do |c|
            env.after_success << trace_sh_command(c)
          end

          app.call(env)
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vx-builder-0.3.10 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.9 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.8 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.7 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.6 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.5 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.4 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.3 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.2 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.1 lib/vx/builder/script_builder/script.rb
vx-builder-0.3.0 lib/vx/builder/script_builder/script.rb