layout | title |
---|---|
default |
A remote server automation and deployment tool written in Ruby. |
{% prism ruby %} role :demo, %w{example.com example.org example.net} task :uptime do |host| on roles(:demo), in: :parallel do uptime = capture(:uptime) puts "#{host.hostname} reports: #{uptime}" end end {% endprism %}
Capistrano extends the Rake DSL with methods specific to running commands
on()
servers.
Capistrano is written in Ruby, but it can easily be used to deploy any language.
If your language or framework has special deployment requirements, Capistrano can easily be extended to support them.