Class: Ronin::DB::CLI::Commands::Remove Private

Inherits:
Ronin::DB::CLI::Command show all
Defined in:
lib/ronin/db/cli/commands/remove.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Removes an entry from the database.yml config file.

Usage

ronin-db remove [options] NAME

Options

-h, --help                       Print help information

Arguments

NAME                             The DB name to remove

Instance Method Summary collapse

Instance Method Details

#run(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Runs the ronin-db remove command.

Parameters:

  • name (String)

    The database name to remove.



59
60
61
62
63
# File 'lib/ronin/db/cli/commands/remove.rb', line 59

def run(name)
  ConfigFile.edit do |config|
    config.delete(name.to_sym)
  end
end