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