🕷 software projects

by ryan davis



sitemap

rake-remote_task

Extends rake with remotely run tasks.

Vlad the Deployer’s sexy brainchild is rake-remote_task, extending Rake with remote task goodness.

  • Run remote commands on one or more servers.
  • Mix and match local and remote tasks.
  • Uses ssh with your ssh settings already in place.
  • Uses rsync for efficient transfers.
1
2
3
4
5
6
7
8
9
10
require "rake/remote_task"

set :domain,    "abc.example.com"
set :ssh_cmd,   "/usr/local/bin/ssh" # optional - use ~/.ssh/config instead
set :ssh_flags, %w[-l joe -p 2000]   # optional

remote_task :setup_app, :roles => :app do
  # ... set the application up ...
  run "umask #{umask} && mkdir -p #{dirs.join(' ')}"
end

Get The Code

If you just want to use rake-remote_task, you can install it via RubyGems:
gem install rake-remote_task
Fork me on GitHub If you want to hack on rake-remote_task, clone it from GitHub:
git clone git://github.com/seattlerb/rake-remote_task

Latest Activity