Skip to content

Commit 9ea42ba

Browse files
committed
Renamed CLI::Text#exploit_type to exploit_type_name.
1 parent 8ae7bea commit 9ea42ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ronin/exploits/cli/commands/show.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def print_exploit(exploit)
121121
#
122122
def print_metadata(exploit)
123123
fields = {
124-
'Type' => exploit_type(exploit)
124+
'Type' => exploit_type_name(exploit)
125125
}
126126

127127
if defined?(Core::Metadata::Version) &&

lib/ronin/exploits/cli/text.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Text
3333
include Core::CLI::Text::Params
3434

3535
# Known exploit types and their printable names.
36-
EXPLOIT_TYPES = {
36+
EXPLOIT_TYPE_NAMES = {
3737
exploit: 'Custom',
3838

3939
# generic exploits
@@ -64,8 +64,8 @@ module Text
6464
#
6565
# @return [String]
6666
#
67-
def exploit_type(exploit_class)
68-
EXPLOIT_TYPES.fetch(exploit_class.exploit_type,'unknown')
67+
def exploit_type_name(exploit_class)
68+
EXPLOIT_TYPE_NAMES.fetch(exploit_class.exploit_type,'unknown')
6969
end
7070

7171
#

0 commit comments

Comments
 (0)