Capistrano::srvr
Utility tasks for Capistrano v3.*
Installation
Add this line to your application's Gemfile:
gem 'capistrano', '~> 3.0.0'
gem 'capistrano-utils'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-utils
Usage
Require the module in your Capfile
:
require 'capistrano/utils'
From the command line:
$ cap production utils:uptime
$ cap production utils:list
$ cap production utils:launch[path/to/script]
or from any of your custom tasks:
task :my_custom_task do
invoke "utils:launch[path/to/script]"
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request