Sha256: 75771cd1037411a9727afd08dc76dfa82b9da3d7144ce61fb114188be54b1b67

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

require 'rake'
require 'torquebox/deploy_utils'
require 'torquebox/remote_deploy_utils'

namespace :torquebox do
  namespace :remote do

    desc "Upload this application to the remote server as an archive file"
    task :stage => ["torquebox:archive"] do
      archive_name = TorqueBox::DeployUtils.archive_name
      TorqueBox::RemoteDeployUtils.stage(archive_name)
    end

    desc "Execute Ruby commands against the staged archive file"
    task :exec, [:cmd] do |t, args|
      cmd = args[:cmd]
      archive_name = TorqueBox::DeployUtils.archive_name
      TorqueBox::RemoteDeployUtils.exec_ruby(archive_name, cmd)
    end

    desc "Deploy the local archive file to the remote TorqueBox server"
    task :deploy do
      archive_name = TorqueBox::DeployUtils.archive_name
      TorqueBox::RemoteDeployUtils.deploy(archive_name)
    end

    namespace :stage do
      desc "Deploy the staged archive file to the remote TorqueBox server"
      task :deploy do
        archive_name = TorqueBox::DeployUtils.archive_name
        TorqueBox::RemoteDeployUtils.deploy_from_stage(archive_name)
      end

      desc "Verify that the archive file made it here intact"
      task :check do
        archive_name = TorqueBox::DeployUtils.archive_name
        # TODO: checksum local and on server
      end
    end

    desc "Undeploy the archive file to the remote TorqueBox server"
    task :undeploy do
      archive_name = TorqueBox::DeployUtils.archive_name
      TorqueBox::RemoteDeployUtils.undeploy(archive_name)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
torquebox-remote-deployer-0.1.2.pre2-java lib/torquebox/rake/tasks/remote.rb
torquebox-remote-deployer-0.1.2.pre1 lib/torquebox/rake/tasks/remote.rb
torquebox-remote-deployer-0.1.1 lib/torquebox/rake/tasks/remote.rb
torquebox-remote-deployer-0.1.0 lib/torquebox/rake/tasks/remote.rb