Sha256: 56a412d2da24fae1d57d149fb19ce4ff902f0491b19e7b15305815e4d34899a9
Contents?: true
Size: 435 Bytes
Versions: 16
Compression:
Stored size: 435 Bytes
Contents
namespace :check do desc "Make sure local git is in sync with remote." task :revision, roles: :web do unless `git rev-parse HEAD` == `git rev-parse origin/#{branch}` puts "WARNING: HEAD is not the same as origin/#{branch}" puts "Run `git push` to sync changes." exit end end before "deploy", "check:revision" before "deploy:migrations", "check:revision" before "deploy:cold", "check:revision" end
Version data entries
16 entries across 16 versions & 3 rubygems