From 9981271e2aec153617ab4f89b5eed756fa50a3c0 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Thu, 16 Oct 2014 15:03:21 -0500 Subject: [PATCH] extract Msf::Reference MSP-11126 --- lib/msf/core.rb | 1 + lib/msf/core/module.rb | 2 +- lib/msf/core/reference.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 lib/msf/core/reference.rb diff --git a/lib/msf/core.rb b/lib/msf/core.rb index aa3b7c2b4f..69c9c92a57 100644 --- a/lib/msf/core.rb +++ b/lib/msf/core.rb @@ -19,6 +19,7 @@ require 'rex/ui' module Msf autoload :Author, 'msf/core/author' + autoload :Reference, 'msf/core/reference' # # Constants diff --git a/lib/msf/core/module.rb b/lib/msf/core/module.rb index 911483dc9d..1e81a5c218 100644 --- a/lib/msf/core/module.rb +++ b/lib/msf/core/module.rb @@ -26,6 +26,7 @@ class Module autoload :PlatformList, 'msf/core/module/platform_list' autoload :Rank, 'msf/core/module/rank' autoload :Reference, 'msf/core/module/reference' + autoload :SiteReference, 'msf/core/module/reference' autoload :Target, 'msf/core/module/target' autoload :Type, 'msf/core/module/type' autoload :UI, 'msf/core/module/ui' @@ -537,7 +538,6 @@ end # Alias the data types so people can reference them just by Msf:: and not # Msf::Module:: # -Reference = Msf::Module::Reference SiteReference = Msf::Module::SiteReference Platform = Msf::Module::Platform Target = Msf::Module::Target diff --git a/lib/msf/core/reference.rb b/lib/msf/core/reference.rb new file mode 100644 index 0000000000..53e426f35c --- /dev/null +++ b/lib/msf/core/reference.rb @@ -0,0 +1 @@ +Msf::Reference = Msf::Module::Reference