class Semverify::CommandLine

def increment_version(method, args, version)

Returns:
  • (Void) -

Parameters:
  • version (String, nil) -- The version to increment or nil to use the version
  • args (Hash) -- The arguments to pass to the method
  • method (Symbol) -- The method to call on the IncrementableSemver object
def increment_version(method, args, version)
  if version
    increment_literal_version(method, args, version)
  else
    increment_gem_version(method, args)
  end
rescue Semverify::Error => e
  warn e.message unless options[:quiet]
  exit 1
end