Sha256: 7280119c91d8c55fdb0928b4e5bb459e093587e170e70ada4b50c1d00052a106

Contents?: true

Size: 652 Bytes

Versions: 10

Compression:

Stored size: 652 Bytes

Contents

module Vx
  module Builder
    class Script

      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

10 entries across 10 versions & 1 rubygems

Version Path
vx-builder-0.1.8 lib/vx/builder/script/script.rb
vx-builder-0.1.7 lib/vx/builder/script/script.rb
vx-builder-0.1.6 lib/vx/builder/script/script.rb
vx-builder-0.1.5 lib/vx/builder/script/script.rb
vx-builder-0.1.4 lib/vx/builder/script/script.rb
vx-builder-0.1.3 lib/vx/builder/script/script.rb
vx-builder-0.1.2 lib/vx/builder/script/script.rb
vx-builder-0.1.1 lib/vx/builder/script/script.rb
vx-builder-0.1.0 lib/vx/builder/script/script.rb
vx-builder-0.0.29 lib/vx/builder/script/script.rb