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

Version Path
redde-0.1.1 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.1.0 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.8 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.7 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.6 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.5 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.4 lib/generators/redde/deploy/templates/recipes/check.rb
redde-0.0.3 lib/generators/redde/deploy/templates/recipes/check.rb
nubis_rails_boilerplate-0.0.11 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.10 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.9 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.8 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.7 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.6 lib/capistrano_recipes/check.rb
nubis_rails_boilerplate-0.0.5 lib/capistrano_recipes/check.rb
cap_recipes-0.0.3 config/recipes/check.rb