Sha256: 9d782b7917c94202491e5d6f7a31de65b97200570d32994faf8f2f3976fb2d93

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 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 #{remote_repository}/#{branch}`
      puts "WARNING: HEAD is not the same as #{remote_repository}/#{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

10 entries across 10 versions & 1 rubygems

Version Path
rail_pass-0.2.0 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.10 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.9 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.8 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.7 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.6 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.5 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.4 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.3 lib/generators/templates/config/recipes/check.rb
rail_pass-0.1.1 lib/generators/templates/config/recipes/check.rb