Module: Overcommit::Hook::Shared::ComposerInstall

Included in:
PostCheckout::ComposerInstall, PostCommit::ComposerInstall, PostMerge::ComposerInstall, PostRewrite::ComposerInstall
Defined in:
lib/overcommit/hook/shared/composer_install.rb

Overview

Shared code used by all ComposerInstall hooks. Runs `composer install` when a change is detected in the repository's dependencies.

Instance Method Summary collapse

Instance Method Details

#runObject


7
8
9
10
11
# File 'lib/overcommit/hook/shared/composer_install.rb', line 7

def run
  result = execute(command)
  return :fail, result.stdout unless result.success?
  :pass
end