Vlad the Deployer’s sexy brainchild is rake-remote_task, extending Rake with remote task goodness.
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
gem install rake-remote_taskFork 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
“More matter, with less art” — Gertrude, Hamlet.