Sha256: dfde7d95eef7ea76deb58ea21702b39cb7946d8b25df902fd4686bafc7aa755d

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Overcommit::Hook::Shared
  # Shared code used by all BowerInstall hooks. Runs `bower install` when a
  # change is detected in the repository's dependencies.
  #
  # @see http://bower.io/
  module BowerInstall
    def run
      result = execute(command)
      return :fail, result.stderr unless result.success?

      :pass
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
overcommit-0.64.1 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.64.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.63.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.62.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.61.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.60.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.59.1 lib/overcommit/hook/shared/bower_install.rb
overcommit-0.59.0 lib/overcommit/hook/shared/bower_install.rb
overcommit-jeygeethanmedia-0.58.0 lib/overcommit/hook/shared/bower_install.rb