Class: Ronin::Wordlists::CLI::Commands::Remove Private

Inherits:
Ronin::Wordlists::CLI::Command show all
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

Methods included from WordlistDirOption

included, #wordlist_dir

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