Sha256: 91ddfdee4945bccef59537efc117f918d3164d9c45b0513c6f28c15240a4d9e0

Contents?: true

Size: 535 Bytes

Versions: 75

Compression:

Stored size: 535 Bytes

Contents

# typed: true
# frozen_string_literal: true

module Dependabot
  module Composer
    module NativeHelpers
      def self.composer_helper_path(composer_version: "2")
        File.join(composer_helpers_dir, "v#{composer_version}", "bin/run")
      end

      def self.composer_helpers_dir
        File.join(native_helpers_root, "composer")
      end

      def self.native_helpers_root
        default_path = File.join(__dir__, "../../../..")
        ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path)
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
dependabot-composer-0.301.1 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.301.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.300.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.299.1 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.299.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.298.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.297.2 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.297.1 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.297.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.296.3 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.296.2 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.296.1 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.296.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.295.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.294.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.293.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.292.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.291.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.290.0 lib/dependabot/composer/native_helpers.rb
dependabot-composer-0.289.0 lib/dependabot/composer/native_helpers.rb