From e5cc456be7b5cb1893ce5c4178e95b3fc4e2a2ec Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Thu, 16 Oct 2014 15:11:59 -0500 Subject: [PATCH] Extract Msf::Platform MSP-11126 --- lib/msf/core.rb | 1 + lib/msf/core/module.rb | 1 - lib/msf/core/platform.rb | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 lib/msf/core/platform.rb diff --git a/lib/msf/core.rb b/lib/msf/core.rb index 157533bec9..ba9b21ac40 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 :Platform, 'msf/core/platform' autoload :Reference, 'msf/core/reference' autoload :SiteReference, 'msf/core/site_reference' diff --git a/lib/msf/core/module.rb b/lib/msf/core/module.rb index f771641e8c..a5b0314f28 100644 --- a/lib/msf/core/module.rb +++ b/lib/msf/core/module.rb @@ -538,7 +538,6 @@ end # Alias the data types so people can reference them just by Msf:: and not # Msf::Module:: # -Platform = Msf::Module::Platform Target = Msf::Module::Target end diff --git a/lib/msf/core/platform.rb b/lib/msf/core/platform.rb new file mode 100644 index 0000000000..15bc889b29 --- /dev/null +++ b/lib/msf/core/platform.rb @@ -0,0 +1 @@ +Msf::Platform = Msf::Module::Platform