Sha256: 0385b625f63885dcde7307af97d5d4fc85579c2e41872f09b88dc34eaf1077f7

Contents?: true

Size: 745 Bytes

Versions: 31

Compression:

Stored size: 745 Bytes

Contents

FactoryGirl.define do
  module_architectures_module_types = Metasploit::Model::Module::Instance.module_types_that_allow(:module_architectures)
  targets_module_types = Metasploit::Model::Module::Instance.module_types_that_allow(:targets)

  # have to remove target supporting types so that target architectures won't interfere with module architectures
  metasploit_model_module_architecture_module_types = module_architectures_module_types - targets_module_types

  sequence :metasploit_model_module_architecture_module_type, metasploit_model_module_architecture_module_types.cycle

  trait :metasploit_model_module_architecture do
    ignore do
      module_type { generate :metasploit_model_module_architecture_module_type }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.25.3 spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.3-java spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.2 spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.2-java spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.1 spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.1-java spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.24.1-java spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.24.1 spec/factories/metasploit/model/module/architectures.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/factories/metasploit/model/module/architectures.rb