CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 04:10:56 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080522094313
location: https://web.archive.org/web/20080522094313/https://github.com/wesabe/robot-army/tree/master
server-timing: captures_list;dur=1.070298, exclusion.robots;dur=0.033723, exclusion.robots.policy;dur=0.013839, esindex;dur=0.017049, cdx.remote;dur=42.618453, LoadShardBlock;dur=209.031512, PetaboxLoader3.datanode;dur=98.158999, PetaboxLoader3.resolve;dur=43.956306
x-app-server: wwwb-app204
x-ts: 302
x-tr: 296
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 08 Aug 2025 04:10:56 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Thu, 22 May 2008 09:43:13 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.85828
x-archive-orig-etag: "fd51acce32a8987b01c5b230c05c06bb"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 14987
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 22 May 2008 09:43:13 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 18 May 2008 02:46:29 GMT", ; rel="prev memento"; datetime="Sun, 18 May 2008 02:46:29 GMT", ; rel="memento"; datetime="Thu, 22 May 2008 09:43:13 GMT", ; rel="next memento"; datetime="Sun, 12 Apr 2009 04:09:54 GMT", ; rel="last memento"; datetime="Sun, 12 Apr 2009 04:09:54 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 50_3_20080521200041_crawl107-c/50_3_20080522094120_crawl103.arc.gz
server-timing: captures_list;dur=0.467221, exclusion.robots;dur=0.016828, exclusion.robots.policy;dur=0.008294, esindex;dur=0.009418, cdx.remote;dur=79.085372, LoadShardBlock;dur=98.671481, PetaboxLoader3.datanode;dur=129.903008, PetaboxLoader3.resolve;dur=93.025340, load_resource;dur=129.586432
x-app-server: wwwb-app204
x-ts: 200
x-tr: 366
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
wesabe's robot-army at master — GitHub
Description: | Deploy scripting with Thor using remote Ruby execution |
Clone URL: |
git://github.com/wesabe/robot-army.git
Give this clone URL to anyone.
git clone git://github.com/wesabe/robot-army.git
|
Repo Search: |
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed May 14 09:40:55 -0700 2008 | Include a license and a Thorfile to package the... [eventualbuddha] |
![]() |
LICENSE | Wed May 14 09:40:55 -0700 2008 | Include a license and a Thorfile to package the... [eventualbuddha] |
![]() |
README.markdown | Fri May 16 19:02:04 -0700 2008 | Remove one of the known issues. WOO! [eventualbuddha] |
![]() |
Rakefile | Wed May 14 09:47:46 -0700 2008 | Add a dummy Rakefile that tells people to use t... [eventualbuddha] |
![]() |
Thorfile | Tue May 20 00:45:23 -0700 2008 | Add a gemspec. [eventualbuddha] |
![]() |
lib/ | Wed May 21 21:36:29 -0700 2008 | Consolidate response handling logic and add an ... [eventualbuddha] |
![]() |
robot-army.gemspec | Tue May 20 18:19:43 -0700 2008 | Update gem version to latest. [eventualbuddha] |
![]() |
spec/ | Wed May 21 21:36:29 -0700 2008 | Consolidate response handling logic and add an ... [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
- No attempt is made to support
sudo
yet - Code executed in
remote
has no access to instance variables, globals, or methods onself
- Multiple hosts are not yet supported
- Probably doesn't work with Windows
This feature is coming soon. Sit tight!