Sha256: bb864bf8959f5ae12ed8542ce4d9e0d123e5c447c3c737cbb99090b12edcd75f

Contents?: true

Size: 645 Bytes

Versions: 12

Compression:

Stored size: 645 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.script << trace_sh_command(c)
          end
          app.call(env)
        end

      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vx-builder-0.0.28 lib/vx/builder/script/script.rb
vx-builder-0.0.27 lib/vx/builder/script/script.rb
vx-builder-0.0.26 lib/vx/builder/script/script.rb
vx-builder-0.0.25 lib/vx/builder/script/script.rb
vx-builder-0.0.24 lib/vx/builder/script/script.rb
vx-builder-0.0.23 lib/vx/builder/script/script.rb
vx-builder-0.0.22 lib/vx/builder/script/script.rb
vx-builder-0.0.21 lib/vx/builder/script/script.rb
vx-builder-0.0.20 lib/vx/builder/script/script.rb
vx-builder-0.0.19 lib/vx/builder/script/script.rb
vx-builder-0.0.18 lib/vx/builder/script/script.rb
vx-builder-0.0.16 lib/vx/builder/script/script.rb