Sha256: 43239cfa2fa0c3ed1313e96b4698f9931d389b4c2fb476a1ebf4d18a40e44cfc

Contents?: true

Size: 692 Bytes

Versions: 4

Compression:

Stored size: 692 Bytes

Contents

module Vx
  module Builder
    class Script

      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

4 entries across 4 versions & 1 rubygems

Version Path
vx-builder-0.3.3 lib/vx/builder/script_builder/deploy.rb-e
vx-builder-0.3.2 lib/vx/builder/script_builder/deploy.rb-e
vx-builder-0.3.1 lib/vx/builder/script_builder/deploy.rb-e
vx-builder-0.3.0 lib/vx/builder/script_builder/deploy.rb-e