Capistrano

Is awesome. 

1. check you’ve got an up-to-date version of Ruby Gems (i.e. >=1.3.x), e.g.

gem -v

2. install

gem install capistrano

3. create your Capfile

desc “List files on server”

task :ls, :hosts => “myhost.com” do

  run “ls”

end

4. and run with:

cap ls

(if you need to set a username, use:

set :user, “your user”

task :ls … etc…

OR just add it into the hostname, e.g.

myuser@myhost.com

)

5. list tasks with 

cap -T

(assuming you’ve got a description for each task)

Capistrano requirements – you must: 

– use SSH to connect to your remote machines and 

– be reasonably familiar with Ruby

https://github.com/capistrano/capistrano/wiki/2.x-Getting-Started

 

GitHub: 

https://github.com/capistrano/capistrano

and website:

http://capistranorb.com

Leave a Reply

Your email address will not be published. Required fields are marked *