Sha256: f38638e370b8dea5b97f790d006329a53b70db1007182a7e393fb830cbf79bcd

Contents?: true

Size: 678 Bytes

Versions: 2

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

require "bootboot/version"
require "bootboot/bundler_patch"

module Bootboot
  GEMFILE = Bundler.default_gemfile
  GEMFILE_LOCK = Pathname("#{GEMFILE}.lock")
  GEMFILE_NEXT_LOCK = Pathname("#{GEMFILE}_next.lock")

  autoload :GemfileNextAutoSync, "bootboot/gemfile_next_auto_sync"
  autoload :Command,             "bootboot/command"

  class << self
    def env_next
      env_prefix + "_NEXT"
    end

    def env_previous
      env_prefix + "_PREVIOUS"
    end

    private

    def env_prefix
      Bundler.settings["bootboot_env_prefix"] || "DEPENDENCIES"
    end
  end
end

Bootboot::GemfileNextAutoSync.new.setup
Bootboot::Command.new.setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootboot-0.2.2 lib/bootboot.rb
bootboot-0.2.1 lib/bootboot.rb