Sha256: 8735a9c9728e951097a0a9ddd65c28303b0f0f66208063582924b1433b1f62b2

Contents?: true

Size: 1.25 KB

Versions: 47

Compression:

Stored size: 1.25 KB

Contents

# Namespace for models
module Mdm
  extend ActiveSupport::Autoload

  autoload :ApiKey
  autoload :Client
  autoload :Cred
  autoload :Event
  autoload :ExploitAttempt
  autoload :ExploitedHost
  autoload :Host
  autoload :HostDetail
  autoload :HostTag
  autoload :Listener
  autoload :Loot
  autoload :Macro
  autoload :ModRef
  autoload :Module
  autoload :NexposeConsole
  autoload :Note
  autoload :Profile
  autoload :Ref
  autoload :Route
  autoload :Service
  autoload :Session
  autoload :SessionEvent
  autoload :Tag
  autoload :Task
  autoload :TaskCred
  autoload :TaskHost
  autoload :TaskService
  autoload :TaskSession
  autoload :User
  autoload :Vuln
  autoload :VulnAttempt
  autoload :VulnDetail
  autoload :VulnRef
  autoload :WebForm
  autoload :WebPage
  autoload :WebSite
  autoload :WebVuln
  autoload :WmapRequest
  autoload :WmapTarget
  autoload :Workspace

  # Causes the model_name for all Mdm modules to not include the Mdm:: prefix in their name.
  #
  # This has been supported since ActiveSupport 3.2.1.  In ActiveSupport 3.1.0, it checked for _railtie.  Before that
  # there was no way to do relative naming without manually overriding model_name in each class.
  #
  # @return [true]
  def self.use_relative_model_naming?
    true
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.5 lib/mdm.rb
metasploit_data_models-2.0.17 lib/mdm.rb
metasploit_data_models-3.0.4 lib/mdm.rb
metasploit_data_models-3.0.2 lib/mdm.rb
metasploit_data_models-3.0.1 lib/mdm.rb
metasploit_data_models-3.0.0 lib/mdm.rb
metasploit_data_models-2.0.16 lib/mdm.rb
metasploit_data_models-2.0.15 lib/mdm.rb
metasploit_data_models-2.0.14 lib/mdm.rb
metasploit_data_models-2.0.13 lib/mdm.rb
metasploit_data_models-2.0.12 lib/mdm.rb
metasploit_data_models-2.0.11 lib/mdm.rb
metasploit_data_models-2.0.10 lib/mdm.rb
metasploit_data_models-2.0.9 lib/mdm.rb
metasploit_data_models-2.0.8 lib/mdm.rb
metasploit_data_models-2.0.7 lib/mdm.rb
metasploit_data_models-2.0.6 lib/mdm.rb
metasploit_data_models-2.0.5 lib/mdm.rb
metasploit_data_models-2.0.4 lib/mdm.rb
metasploit_data_models-2.0.1 lib/mdm.rb