Class: Ronin::DB::CLI::Commands::Remove Private
- Inherits:
-
Ronin::DB::CLI::Command
- Object
- Core::CLI::Command
- Ronin::DB::CLI::Command
- Ronin::DB::CLI::Commands::Remove
- 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
-
#run(name) ⇒ Object
private
Runs the
ronin-db remove
command.
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.
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 |