Why you deploy on friday?!
(inspired by twitter joke)
Add this line to your application's Gemfile:
gem 'capistrano-friday'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-friday
Require in Capfile to use the task:
# Capfile
require 'capistrano/friday'
In your config/deploy.rb
(or config/deploy/production.rb
) do something like that:
# config/deploy.rb
before 'deploy:starting', 'friday:check'
In default configuration it's just a warning but you can completely disable deploying by setting:
set :friday_disable_deploy, true
You also can change default MOTD (default is :base_jumper
):
set :friday_motd, :flipping_table
TODO: need to add many more MOTDs!
Ignore stages, so not as to punish the testing of code:
set :friday_ignored_stages, :staging
# or
set :friday_ignored_stages, [:staging, :testing]
# or completely remove
set :friday_ignored_stages, nil
By default, :staging
is already ignored.
- Fork it ( https://github.com/marshall-lee/capistrano-friday/fork )
- 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 a new Pull Request