Module: Overcommit::Hook::Shared::BundleInstall
- Included in:
- PostCheckout::BundleInstall, PostCommit::BundleInstall, PostMerge::BundleInstall, PostRewrite::BundleInstall
- Defined in:
- lib/overcommit/hook/shared/bundle_install.rb
Overview
Shared code used by all BundleInstall hooks. Runs ‘bundle install` when a change is detected in the repository’s dependencies.
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 |
# File 'lib/overcommit/hook/shared/bundle_install.rb', line 9 def run result = execute(command) return :fail, result.stdout unless result.success? :pass end |