Skip to content

Commit b1c5118

Browse files
committed
Renamed CLI::Text#vuln_type to CLI::Text#vuln_type_name.
1 parent 00b3f41 commit b1c5118

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/ronin/vulns/cli/importable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.included(command)
6161
def import_vuln(vuln)
6262
Importer.import(vuln)
6363

64-
vuln_type = vuln_type(vuln)
64+
vuln_type = vuln_type_name(vuln)
6565
param_type = vuln_param_type(vuln)
6666
param_name = vuln_param_name(vuln)
6767

lib/ronin/vulns/cli/printing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module Printing
4444
# The web vulnerability to log.
4545
#
4646
def log_vuln(vuln)
47-
vuln_type = vuln_type(vuln)
47+
vuln_type = vuln_type_name(vuln)
4848
param_type = vuln_param_type(vuln)
4949
param_name = vuln_param_name(vuln)
5050

@@ -70,7 +70,7 @@ def log_vuln(vuln)
7070
# @since 0.2.0
7171
#
7272
def print_vuln(vuln, print_curl: false, print_http: false)
73-
vuln_type = vuln_type(vuln)
73+
vuln_type = vuln_type_name(vuln)
7474
param_type = vuln_param_type(vuln)
7575
param_name = vuln_param_name(vuln)
7676

lib/ronin/vulns/cli/text.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CLI
2828
#
2929
module Text
3030
# Known vulnerability types and their display names.
31-
VULN_TYPES = {
31+
VULN_TYPE_NAMES = {
3232
command_injection: 'Command Injection',
3333
open_redirect: 'Open Redirect',
3434
reflected_xss: 'reflected XSS',
@@ -47,8 +47,8 @@ module Text
4747
#
4848
# @return [String]
4949
#
50-
def vuln_type(vuln)
51-
VULN_TYPES.fetch(vuln.class.vuln_type)
50+
def vuln_type_name(vuln)
51+
VULN_TYPE_NAMES.fetch(vuln.class.vuln_type)
5252
end
5353

5454
#

0 commit comments

Comments
 (0)