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.41 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.38 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.37 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.36 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.35 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.34 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.33 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.32 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.31 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.30 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.29 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.28 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.27 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.26 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.25 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.24 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.23 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.22 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.21 lib/vx/builder/script_builder/deploy.rb
vx-builder-0.5.20 lib/vx/builder/script_builder/deploy.rb