2013-06-12 16:44:00 -04:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: A remote server automation and deployment tool written in Ruby.
|
|
|
|
---
|
|
|
|
|
|
|
|
### A Simple Task
|
|
|
|
|
2014-01-03 16:41:22 -05:00
|
|
|
{% highlight ruby %}
|
2013-07-01 19:48:56 -04:00
|
|
|
role :demo, %w{example.com example.org example.net}
|
2014-07-16 10:29:53 -04:00
|
|
|
task :uptime do
|
|
|
|
on roles(:demo), in: :parallel do |host|
|
2013-06-12 16:44:00 -04:00
|
|
|
uptime = capture(:uptime)
|
|
|
|
puts "#{host.hostname} reports: #{uptime}"
|
|
|
|
end
|
|
|
|
end
|
2014-01-03 16:41:22 -05:00
|
|
|
{% endhighlight %}
|
2013-06-12 16:44:00 -04:00
|
|
|
|
|
|
|
Capistrano extends the *Rake* DSL with methods specific to running commands
|
|
|
|
`on()` servers.
|
|
|
|
|
|
|
|
### For Any Language
|
|
|
|
|
|
|
|
Capistrano is written in Ruby, but it can easily be used to deploy any
|
2013-06-30 08:23:14 -04:00
|
|
|
language.
|
2013-06-12 16:44:00 -04:00
|
|
|
|
2013-06-30 08:23:14 -04:00
|
|
|
If your language or framework has special deployment requirements, Capistrano can easily be
|
2013-06-12 16:44:00 -04:00
|
|
|
extended to support them.
|
|
|
|
|
2013-06-30 11:26:18 -04:00
|
|
|
### Source Code
|
2013-06-30 07:30:03 -04:00
|
|
|
|
|
|
|
<div class="github-widget" data-repo="capistrano/capistrano"></div>
|
|
|
|
<div class="github-widget" data-repo="capistrano/rails"></div>
|
|
|
|
<div class="github-widget" data-repo="capistrano/documentation"></div>
|