Sha256: f46b4069599b222c7e409e8fe89b0a12f6ecbe709e0cc243b96392bffa8e9d41
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
namespace :pre_commit do desc 'check ruby code style by rubocop' task :rubocop do |t| Githook::Util.log(t.name) exit 1 unless system("bundle exec rubocop") end desc 'test by rspec' task :rspec do |t| Githook::Util.log(t.name) exit 1 unless system("bundle exec rspec") end end desc 'run all pre-commit hook tasks' task :pre_commit do |t| Githook::Util.log(t.name) Githook::Util.run_tasks(t.name.to_sym) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git-hook-0.1.3 | lib/githook/tasks/pre-commit.rake |
git-hook-0.1.2 | lib/githook/tasks/pre-commit.rake |
git-hook-0.1.1 | lib/githook/tasks/pre-commit.rake |