Module: MetasploitDataModels

Extended by:
ActiveSupport::Autoload
Defined in:
lib/metasploit_data_models.rb,
lib/metasploit_data_models/version.rb

Overview

Core database models for metasploit-framework.

Defined Under Namespace

Modules: AutomaticExploitation, IPAddress, Match, Search, SerializedPrefs, Version Classes: Base64Serializer, ChangeRequiredColumnsToNullFalse, Engine, ModuleRun

Constant Summary collapse

GEM_VERSION =

The full gem version string, including the Version::MAJOR, Version::MINOR, Version::PATCH, and optionally, the MetasploitDataModels::Version::PRERELEASE in the RubyGems versioning format.

Returns:

Version.gem
VERSION =

The full version string, including the MetasploitDataModels::Version::MAJOR, MetasploitDataModels::Version::MINOR, MetasploitDataModels::Version::PATCH, and optionally, the MetasploitDataModels::Version::PRERELEASE in the semantic versioning v2.0.0 format.

Version.full

Class Method Summary collapse

Class Method Details

.rootPathname

The root directory of metasploit_data_models gem in both development and gem installs.

Returns:

  • (Pathname)


45
46
47
48
49
50
51
52
53
# File 'lib/metasploit_data_models.rb', line 45

def self.root
  unless instance_variable_defined? :@root
    lib_pathname = Pathname.new(__FILE__).dirname

    @root = lib_pathname.parent
  end

  @root
end