Sha256: 8de3c64770d5f7ae719662db26724dda7e9259ab207a822c2e3974e7cb3e11f4

Contents?: true

Size: 718 Bytes

Versions: 65

Compression:

Stored size: 718 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      class Defaults < Base

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

          env.source.install.each do |c|
            env.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

65 entries across 65 versions & 1 rubygems

Version Path
vx-builder-0.5.41 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.38 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.37 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.36 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.35 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.34 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.33 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.32 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.31 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.30 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.29 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.28 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.27 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.26 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.25 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.24 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.23 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.22 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.21 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.20 lib/vx/builder/script_builder/defaults.rb