summaryrefslogtreecommitdiff
path: root/task
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-12 18:24:30 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-12 22:44:05 -0500
commit85992a5d4a25712c7367f889e9f3589928449673 (patch)
tree0726c366c38f70d36b2ad326845612dd3f6fd961 /task
parentbf2ba39a58d4f14551900c65676fe70f3c51e1db (diff)
downloadbundler-85992a5d4a25712c7367f889e9f3589928449673.tar.gz
[Rakefile] Run hooks quietly
Diffstat (limited to 'task')
-rw-r--r--task/build_metadata.rake2
-rw-r--r--task/git_hooks.rake8
2 files changed, 5 insertions, 5 deletions
diff --git a/task/build_metadata.rake b/task/build_metadata.rake
index 86666384ed..a896ed4801 100644
--- a/task/build_metadata.rake
+++ b/task/build_metadata.rake
@@ -1,6 +1,6 @@
# frozen_string_literal: true
file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", ".git/logs/HEAD", __FILE__, :git_hooks] do |t|
- sh "git update-index --assume-unchanged #{t.name}"
+ sh "git update-index --assume-unchanged #{t.name}", :verbose => false
build_metadata = {
:built_at => BUNDLER_SPEC.date.strftime("%Y-%m-%d"),
diff --git a/task/git_hooks.rake b/task/git_hooks.rake
index 9d41370ba0..0b8aab2ff9 100644
--- a/task/git_hooks.rake
+++ b/task/git_hooks.rake
@@ -10,7 +10,7 @@ set -e
.git/hooks/run-ruby bin/rake generate_files
SH
- chmod 0o755, t.name
+ chmod 0o755, t.name, :verbose => false
end
file ".git/hooks/pre-commit" => [__FILE__] do |t|
@@ -23,12 +23,12 @@ set -e
.git/hooks/run-ruby bin/rspec spec/quality_spec.rb
SH
- chmod 0o755, t.name
+ chmod 0o755, t.name, :verbose => false
end
file ".git/hooks/pre-push" => [__FILE__] do |_t|
Dir.chdir(".git/hooks") do
- safe_ln "pre-commit", "pre-push"
+ safe_ln "pre-commit", "pre-push", :verbose => false
end
end
@@ -41,7 +41,7 @@ command -v chruby-exec >/dev/null 2>&1 && [[ -f ~/.ruby-version ]] && ruby="chru
ruby $@
SH
- chmod 0o755, t.name
+ chmod 0o755, t.name, :verbose => false
end
task :git_hooks => Rake::Task.tasks.select {|t| t.name.start_with?(".git/hooks") }