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.61 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.60 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.59 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.58 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.57 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.56 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.55 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.54 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.53 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.52 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.51 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.50 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.49 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.48 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.47 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.46 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.45 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.44 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.43 lib/vx/builder/script_builder/defaults.rb
vx-builder-0.5.42 lib/vx/builder/script_builder/defaults.rb