Sha256: fe4dea9b9675f39dcb843eef7762e14d185a6a8754c6df70de71e7c20db7149c

Contents?: true

Size: 699 Bytes

Versions: 76

Compression:

Stored size: 699 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      class Deploy < Base

        def call(env)
          do_before_deploy(env) do |e|
            env.source.before_deploy.each do |c|
              e << trace_sh_command(c)
            end
          end

          do_deploy_script(env) do |e|
            env.source.deploy_modules.each do |m|
              m.to_commands.each do |c|
                e << trace_sh_command(c)
              end
            end
          end

          do_after_deploy(env) do |e|
            env.source.after_deploy.each do |c|
              e << trace_sh_command(c)
            end
          end

          app.call(env)
        end

      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
vx-builder-0.5.19 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.18 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.17 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.16 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.15 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.14 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.13 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.12 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.11 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.10 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.9 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.8 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.7 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.6 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.5 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.4 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.3 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.2 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.1 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.0 lib/vx/builder/script_builder/deploy.rb