Sha256: c46c4c1cb7f2a26c4fc743e5ad15f7f4a29e076a8dc04812b8ee0616e4deec52

Contents?: true

Size: 353 Bytes

Versions: 28

Compression:

Stored size: 353 Bytes

Contents

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

28 entries across 26 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/bundle_install.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/bundle_install.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/bundle_install.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.46.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.45.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.44.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.43.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.42.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.41.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.40.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.39.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.39.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.38.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.37.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.36.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.35.0 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.34.2 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.34.1 lib/overcommit/hook/shared/bundle_install.rb
overcommit-0.34.0 lib/overcommit/hook/shared/bundle_install.rb