Skip to content

Commit d67f7a2

Browse files
committed
Move autoloads into OptionContainer
This seems like a better place for them to live
1 parent d7fc929 commit d67f7a2

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

lib/msf/core/opt_base.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@
55

66
module Msf
77

8-
autoload :Opt, 'msf/core/opt'
9-
10-
autoload :OptAddress, 'msf/core/opt_address'
11-
autoload :OptAddressRange, 'msf/core/opt_address_range'
12-
autoload :OptBool, 'msf/core/opt_bool'
13-
autoload :OptEnum, 'msf/core/opt_enum'
14-
autoload :OptInt, 'msf/core/opt_int'
15-
autoload :OptPath, 'msf/core/opt_path'
16-
autoload :OptPort, 'msf/core/opt_port'
17-
autoload :OptRaw, 'msf/core/opt_raw'
18-
autoload :OptRegexp, 'msf/core/opt_regexp'
19-
autoload :OptString, 'msf/core/opt_string'
20-
218
###
229
#
2310
# The base class for all options.

lib/msf/core/option_container.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
# -*- coding: binary -*-
22

33
module Msf
4-
require 'msf/core/opt_base'
4+
5+
autoload :Opt, 'msf/core/opt'
6+
7+
autoload :OptBase, 'msf/core/opt_base'
8+
9+
autoload :OptAddress, 'msf/core/opt_address'
10+
autoload :OptAddressRange, 'msf/core/opt_address_range'
11+
autoload :OptBool, 'msf/core/opt_bool'
12+
autoload :OptEnum, 'msf/core/opt_enum'
13+
autoload :OptInt, 'msf/core/opt_int'
14+
autoload :OptPath, 'msf/core/opt_path'
15+
autoload :OptPort, 'msf/core/opt_port'
16+
autoload :OptRaw, 'msf/core/opt_raw'
17+
autoload :OptRegexp, 'msf/core/opt_regexp'
18+
autoload :OptString, 'msf/core/opt_string'
519

620
#
721
# The options purpose in life is to associate named options with arbitrary

0 commit comments

Comments
 (0)