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.19 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.18 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.17 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.16 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.15 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.14 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.13 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.12 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.11 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.10 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.9 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.8 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.7 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.6 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.5 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.4 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.3 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.2 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.1 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.0 lib/vx/builder/script_builder/defaults.rb