Module: Overcommit::Hook::Shared::BowerInstall

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

Overview

Shared code used by all BowerInstall hooks. Runs ‘bower install` when a change is detected in the repository’s dependencies.

See Also:

Instance Method Summary collapse

Instance Method Details

#runObject



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

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