@@ -45,7 +45,7 @@ def cmd_alias(*args)
45
45
# we parse args manually instead of using @@alias.opts.parse to handle special cases
46
46
case args . length
47
47
when 0 # print the list of current aliases
48
- if @aliases . length == 0
48
+ if @aliases . length == 0
49
49
return print_status ( "No aliases currently defined" )
50
50
else
51
51
tbl = Rex ::Ui ::Text ::Table . new (
@@ -86,7 +86,7 @@ def cmd_alias(*args)
86
86
# for example you 'alias -f set unset and then 'alias -f alias sessions', now you're screwed. The byproduct
87
87
# of this is that it prevents you from aliasing 'alias' to 'alias -f' etc, but that's acceptable
88
88
reserved_words = [ /^alias/i ]
89
- reserved_words . each do |regex |
89
+ reserved_words . each do |regex |
90
90
if name =~ regex
91
91
print_error "You cannot use #{ name } as the name for an alias, sorry"
92
92
return false
@@ -150,7 +150,7 @@ def cmd_alias(*args)
150
150
def cmd_alias_help
151
151
print_line "Usage: alias [options] [name [value]]"
152
152
print_line
153
- print ( @@alias_opts . usage ( ) )
153
+ print ( @@alias_opts . usage ( ) )
154
154
end
155
155
156
156
#
@@ -204,7 +204,7 @@ def register_alias(name, value)
204
204
driver . run_single ( "help #{ value } " )
205
205
end
206
206
end
207
- # add the alias to the list
207
+ # add the alias to the list
208
208
@aliases [ name ] = value
209
209
end
210
210
@@ -213,7 +213,7 @@ def register_alias(name, value)
213
213
#
214
214
def deregister_alias ( name )
215
215
self . class_eval do
216
- # remove the class methods we created when the alias was registered
216
+ # remove the class methods we created when the alias was registered
217
217
remove_method ( "cmd_#{ name } " )
218
218
remove_method ( "cmd_#{ name } _tabs" )
219
219
remove_method ( "cmd_#{ name } _help" )
@@ -223,7 +223,7 @@ def deregister_alias(name)
223
223
end
224
224
225
225
#
226
- # Validate a proposed alias
226
+ # Validate a proposed alias with the +name+ and having the value +value+
227
227
#
228
228
def is_valid_alias? ( name , value )
229
229
#print_good "Assessing validay for #{name} and #{value}"
@@ -343,4 +343,4 @@ def desc
343
343
end
344
344
345
345
end ## End Plugin Class
346
- end ## End Module
346
+ end ## End Module
0 commit comments