Sha256: a78880a6142f762ed6898600071dcb966a9ebe5b30986714b37a13b9eaec7160

Contents?: true

Size: 1.25 KB

Versions: 68

Compression:

Stored size: 1.25 KB

Contents

# An origin for {#cores core credentials} that were imported by a {#task} from a {#filename file}.
class Metasploit::Credential::Origin::Import < ActiveRecord::Base
  #
  # Associations
  #

  # @!attribute cores
  #   {Metasploit::Credential::Core Core credentials} imported from {#filename}.
  #
  #   @return [ActiveRecord::Relation<Metasploit::Credential::Core>]
  has_many :cores,
           as: :origin,
           class_name: 'Metasploit::Credential::Core',
           dependent: :destroy

  # @!attribute task
  #   The task that did the import.
  #
  #   @return [Mdm::Task]
  belongs_to :task,
             class_name: 'Mdm::Task',
             inverse_of: :import_credential_origins

  #
  # Attribute
  #

  # @!attribute created_at
  #   When the credentials were imported.
  #
  #   @return [DateTime]

  # @!attribute filename
  #   The `File.basename` of the file from which the {#cores core credentials} were imported.  Because only a
  #   basename is available, a {#filename} may be used more than once for the same {#task}.
  #
  #   @return [String]

  # @!attribute updated_at
  #   When this origin was last updated.
  #
  #   @return [DateTime]


  #
  # Mass Assignment Security
  #

  attr_accessible :filename


  Metasploit::Concern.run(self)
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
metasploit-credential-0.14.8 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.7 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.6 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.5 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.4 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.3 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.2 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.1 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.14.0 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.19 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.18 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.17 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.16 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.15 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.12 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.11 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.10 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.9 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.8 app/models/metasploit/credential/origin/import.rb
metasploit-credential-0.13.7 app/models/metasploit/credential/origin/import.rb