module Overcommit::Hook::Shared::NpmInstall

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

@see www.npmjs.com/

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/shared/npm_install.rb, line 9
def run
  result = execute(command)
  return :fail, result.stderr unless result.success?
  :pass
end