Module: Ronin::Metasploit::Model

Includes:
Types
Included in:
Client, Credential, Event, ExploitedHost, Host, Loot, ProjectMember, Ref, Report, SchemaMigration, Service, User, Vuln, VulnRef, WMapRequest, WMapTarget, Workspace
Defined in:
lib/ronin/metasploit/model/model.rb,
lib/ronin/metasploit/model/types/serialized_ruby.rb

Defined Under Namespace

Modules: Types

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ronin/metasploit/model/model.rb', line 32

def self.included(base)
  base.send :include, DataMapper::Resource, Model::Types

  base.is :read_only

  base.module_eval do
    def self.default_repository_name
      :metasploit
    end
  end
end