class DependencyBumper::Cli

Constants

DEFAULT_CONFIGURATION

Public Instance Methods

bump_gems() click to toggle source
# File lib/dependency_bumper/cli.rb, line 45
def bump_gems
  path = options.fetch(:config, '.bumper_config.json')
  Updater.new(load_config(Pathname.new(path)), options.slice(:dry, :git)).run
end

Private Instance Methods

load_config(config_file) click to toggle source
# File lib/dependency_bumper/cli.rb, line 52
def load_config(config_file)
  return JSON.parse(config_file.read) if config_file.exist?

  Console.logger.info("Couldn\'t find #{config_file} file, falling back to default values")
  DEFAULT_CONFIGURATION
end