Class: Ronin::Wordlists::CLI::Commands::Remove Private
- Inherits:
-
Ronin::Wordlists::CLI::Command
- Object
- Core::CLI::Command
- Ronin::Wordlists::CLI::Command
- Ronin::Wordlists::CLI::Commands::Remove
- Includes:
- Core::CLI::Logging, WordlistDirOption
- Defined in:
- lib/ronin/wordlists/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 a wordlist from the cache directory.
Usage
ronin-wordlists remove [options] NAME
Options
-d, --wordlist-dir DIR The wordlist directory
-h, --help Print help information
Arguments
NAME The wordlist to remove
Instance Method Summary collapse
-
#run(name) ⇒ Object
private
Runs the
ronin-wordlists remove
command.
Methods included from WordlistDirOption
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-wordlists remove
command.
63 64 65 66 67 68 |
# File 'lib/ronin/wordlists/cli/commands/remove.rb', line 63 def run(name) wordlist_dir.remove(name) rescue WordlistNotFound print_error "no such wordlist: #{name}" exit(1) end |