Module: RestoreBundledWith

Defined in:
lib/restore_bundled_with.rb,
lib/restore_bundled_with/cli.rb,
lib/restore_bundled_with/lock.rb,
lib/restore_bundled_with/error.rb,
lib/restore_bundled_with/version.rb,
lib/restore_bundled_with/repository.rb

Overview

Restore BUNDLED WITH section in Gemfile.lock from git repository.

Defined Under Namespace

Classes: CLI, Lock, NoInputError, Repository

Constant Summary collapse

ISSUE_URL =
'https://github.com/packsaddle/ruby-restore_bundled_with/issues/new'.freeze
VERSION =
'1.0.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



19
20
21
22
# File 'lib/restore_bundled_with.rb', line 19

def self.logger
  return @logger if @logger
  @logger = default_logger
end

Class Method Details

.default_loggerObject



12
13
14
15
16
17
# File 'lib/restore_bundled_with.rb', line 12

def self.default_logger
  logger = Logger.new(STDERR)
  logger.progname = "RestoreBundledWith #{VERSION}"
  logger.level = Logger::WARN
  logger
end