This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install wesabe-robot-army
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Jun 23 18:39:40 -0700 2008 | [eventualbuddha] |
| |
LICENSE | Wed May 14 09:40:55 -0700 2008 | [eventualbuddha] |
| |
README.markdown | Thu Jun 19 16:17:33 -0700 2008 | [eventualbuddha] |
| |
Rakefile | Wed May 14 09:47:46 -0700 2008 | [eventualbuddha] |
| |
Thorfile | Thu Jun 19 10:23:06 -0700 2008 | [eventualbuddha] |
| |
examples/ | Wed May 28 19:11:49 -0700 2008 | [eventualbuddha] |
| |
lib/ | Tue Jun 24 13:53:20 -0700 2008 | [eventualbuddha] |
| |
robot-army.gemspec | Tue May 20 18:19:43 -0700 2008 | [eventualbuddha] |
| |
spec/ | Tue Jun 24 13:53:20 -0700 2008 | [eventualbuddha] |
README.markdown
Robot Army
Robot Army is deploy scripting which offers remote execution of Ruby in addition to the usual shell scripting offered by other deploy packages.
If you want to test this, be sure that the robot-army gem is installed on both the client and server machines. You should get an error if you try to execute it against a server with it installed.
Example
class AppServer < RobotArmy::TaskMaster
host 'app1.prod.example.com'
desc "time", "Get the time on the server (delta will be slightly off depending on SSH delay)"
def time
rtime = remote{ Time.now }
ltime = Time.now
say "The time on #{host} is #{rtime}, " +
"#{(rtime-ltime).abs} seconds #{rtime < ltime ? 'behind' : 'ahead of'} localhost"
end
desc "deployed_revision", "Gets the deployed revision"
def deployed_revision
say "Checking deployed revision on #{host}"
say "Deployed revision: #{remote{ File.read("/opt/app/current/REVISION") }}"
end
end
Known Issues
- Code executed in
remotehas no access to instance variables or globals - Probably doesn't work with Windows




