Sha256: 88ff3a2f8f807ba1dbaaea3ee8f5bc37c6ad2520b823da0e62d30b9b1a6057f3

Contents?: true

Size: 1008 Bytes

Versions: 42

Compression:

Stored size: 1008 Bytes

Contents

# A set of {#matches automatic exploitation matches}.
class MetasploitDataModels::AutomaticExploitation::MatchSet < ActiveRecord::Base
  #
  # Associations
  #

  # Runs of this set of {#matches}.
  has_many :runs,
           class_name: "MetasploitDataModels::AutomaticExploitation::Run",
           inverse_of: :match_set

  # Matches in this set.
  has_many :matches,
           class_name: "MetasploitDataModels::AutomaticExploitation::Match",
           inverse_of: :match_set,
           dependent: :destroy

  # User that created this match set.
  belongs_to :user,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::User"

  # Workspace in which this match set exists.
  belongs_to :workspace,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::Workspace"

  #
  # Validations
  #

  validates :user,
            presence: true

  validates :workspace,
            presence: true


  Metasploit::Concern.run(self)
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
metasploit_data_models-3.0.10 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.9 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.8 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.7 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.6 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.5 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.17 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.4 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.2 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.1 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-3.0.0 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.16 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.15 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.14 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.13 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.12 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.11 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.10 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.9 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-2.0.8 app/models/metasploit_data_models/automatic_exploitation/match_set.rb