Sha256: abadf81dabfb4dbec37d238d4dd4333be5c4c0457a812a0e85c7b46a10d0a3ab
Contents?: true
Size: 773 Bytes
Versions: 13
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true module Diffend # Builds bundler definition used within the plugin module BuildBundlerDefinition class << self # Build clean instance of bundler definition, as we don't want to pollute the main one # # @param command [String] bundler command that we are executing # @param gemfile [String] path to Gemfile # @param lockfile [String] path to Gemfile.lock # # @return [Bundler::Definition] def call(command, gemfile, lockfile) unlock = command == 'update' ? true : nil Bundler.configure Bundler::Fetcher.disable_endpoint = nil Bundler::Definition .build(gemfile, lockfile, unlock) .tap(&:validate_runtime!) end end end end
Version data entries
13 entries across 13 versions & 2 rubygems