Sha256: 3733df2342e241410adc3e530b955d44b6256bf59d7ca655b0e1ad71462dbe01

Contents?: true

Size: 1.52 KB

Versions: 11

Compression:

Stored size: 1.52 KB

Contents

#
# Gems
#
require 'active_model'
require 'active_support'

autoload :IpFormatValidator, 'ip_format_validator'
autoload :NilValidator, 'nil_validator'
autoload :ParametersValidator, 'parameters_validator'
autoload :PasswordIsStrongValidator, 'password_is_strong_validator'

# Top-level namespace shared between metasploit-model, metasploit-framework, and Pro.
module Metasploit
  # The namespace for this gem.  All code under the {Metasploit::Model} namespace is code that is shared between
  # in-memory ActiveModels in metasploit-framework and database ActiveRecords in metasploit_data_models.  Having a
  # separate gem for this shard code outside of metasploit_data_models is necessary as metasploit_data_models is an
  # optional dependency for metasploit-framework as metasploit-framework can work without a database.
  module Model
    extend ActiveSupport::Autoload

    autoload :Architecture
    autoload :Association
    autoload :Author
    autoload :Authority
    autoload :Base
    autoload :Derivation
    autoload :EmailAddress
    autoload :Error
    autoload :File
    autoload :Invalid
    autoload :Login
    autoload :Module
    autoload :NilifyBlanks
    autoload :Platform
    autoload :RealPathname
    autoload :Realm
    autoload :Reference
    autoload :Search
    autoload :Spec
    autoload :Translation
    autoload :Visitation
  end
end

#
# Project - require Metasploit::Model to be defined
#

# MUST require and not autoload as Rails::Engine loading works based subclass registration
require 'metasploit/model/version'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
metasploit-model-0.30.2 lib/metasploit/model.rb
metasploit-model-0.30.2-java lib/metasploit/model.rb
metasploit-model-0.30.1 lib/metasploit/model.rb
metasploit-model-0.30.1-java lib/metasploit/model.rb
metasploit-model-0.30.1.pre.rspec.pre.3.pre.1 lib/metasploit/model.rb
metasploit-model-0.30.0 lib/metasploit/model.rb
metasploit-model-0.30.0-java lib/metasploit/model.rb
metasploit-model-0.29.2 lib/metasploit/model.rb
metasploit-model-0.29.2-java lib/metasploit/model.rb
metasploit-model-0.29.0 lib/metasploit/model.rb
metasploit-model-0.29.0-java lib/metasploit/model.rb