Module: Overcommit::Hook::Shared::YarnInstall

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#runObject


9
10
11
12
13
14
# File 'lib/overcommit/hook/shared/yarn_install.rb', line 9

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

  :pass
end