Module: ActiveAttack::PlaybooksHelper
- Defined in:
- app/helpers/active_attack/playbooks_helper.rb
Instance Method Summary collapse
- #attack_pattern_class(phase, row) ⇒ Object
- #attack_pattern_target(phase, row) ⇒ Object
- #campaign_list(phase, row) ⇒ Object
Instance Method Details
#attack_pattern_class(phase, row) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/active_attack/playbooks_helper.rb', line 3 def attack_pattern_class(phase, row) if @playbook.attack_patterns.collect(&:name).include? @playbook.attack_pattern_matrix(phase.name, row) "used" end end |
#attack_pattern_target(phase, row) ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/helpers/active_attack/playbooks_helper.rb', line 13 def attack_pattern_target(phase, row) if @playbook.attack_patterns.collect(&:name).include? @playbook.attack_pattern_matrix(phase.name, row) "matrix.used" else "matrix.notused" end end |
#campaign_list(phase, row) ⇒ Object
9 10 11 |
# File 'app/helpers/active_attack/playbooks_helper.rb', line 9 def campaign_list(phase, row) @playbook.attack_pattern_campaign_list(phase,row) end |