Class: DependencyBumper::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/dependency_bumper/cli.rb

Constant Summary collapse

DEFAULT_CONFIGURATION =
{
  'skip' => {},
  'outdated_level' => 'strict',
  'update' => {
    'default' => 'minor',
    'major' => {},
    'minor' => {},
    'patch' => {}
  },
  'git' => {
    'commit' => {
      'gpgsign' => false
    }
  }
}.freeze

Instance Method Summary collapse

Instance Method Details

#bump_gemsObject



45
46
47
48
# 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