Sha256: 1966a8fa5848048ef4a04c6aa2c8827403a1f6ef1b06376ac892a2a601d6cfe8

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module ORS::Commands

  class Deploy < Base

    def execute
      info "deploying #{name} #{environment}..."

      [Update, Migrate, Restart].each {|command| run command }

      eval ERB.new(deploy_hook).result(binding) if deploy_hook

      if remote_deploy_hook
        execute_in_parallel(app_servers) do |server|
          execute_command server, prepare_environment, remote_deploy_hook
        end
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ors-0.2.6 lib/ors/commands/deploy.rb