Sha256: a998248bbf4ef7f23de74feff3b7ea718d8113cb2912ac214798c78255ab0974

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 Bytes

Contents

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

Version data entries

9 entries across 7 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/composer_install.rb
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/composer_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/composer_install.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/shared/composer_install.rb
overcommit-0.46.0 lib/overcommit/hook/shared/composer_install.rb
overcommit-0.45.0 lib/overcommit/hook/shared/composer_install.rb
overcommit-0.44.0 lib/overcommit/hook/shared/composer_install.rb
overcommit-0.43.0 lib/overcommit/hook/shared/composer_install.rb
overcommit-0.42.0 lib/overcommit/hook/shared/composer_install.rb