Sha256: 073bee4c5d392e3055eab6ccf16117f6aee7688849038dfcbbcd36c5785ce174

Contents?: true

Size: 384 Bytes

Versions: 19

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
overcommit-0.58.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.57.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.56.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.55.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.54.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.54.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-jeygeethanmedia-0.53.1.2 lib/overcommit/hook/shared/bundle_install.rb
overcommit-jeygeethanmedia-0.53.1.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-jeygeethanmedia-0.53.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.53.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.52.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.52.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.51.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.50.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.49.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.49.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.48.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.48.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.47.0 lib/overcommit/hook/shared/bundle_install.rb