Class: BlueWall::AuditResult
- Inherits:
-
Struct
- Object
- Struct
- BlueWall::AuditResult
- Defined in:
- lib/bluewall.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#firewall_type ⇒ Object
Returns the value of attribute firewall_type.
-
#framework_assessments ⇒ Object
Returns the value of attribute framework_assessments.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#score ⇒ Object
Returns the value of attribute score.
-
#simulated_attacks ⇒ Object
Returns the value of attribute simulated_attacks.
-
#strengths ⇒ Object
Returns the value of attribute strengths.
-
#weaknesses ⇒ Object
Returns the value of attribute weaknesses.
Instance Method Summary collapse
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details
27 28 29 |
# File 'lib/bluewall.rb', line 27 def details @details end |
#firewall_type ⇒ Object
Returns the value of attribute firewall_type
27 28 29 |
# File 'lib/bluewall.rb', line 27 def firewall_type @firewall_type end |
#framework_assessments ⇒ Object
Returns the value of attribute framework_assessments
27 28 29 |
# File 'lib/bluewall.rb', line 27 def framework_assessments @framework_assessments end |
#rules ⇒ Object
Returns the value of attribute rules
27 28 29 |
# File 'lib/bluewall.rb', line 27 def rules @rules end |
#score ⇒ Object
Returns the value of attribute score
27 28 29 |
# File 'lib/bluewall.rb', line 27 def score @score end |
#simulated_attacks ⇒ Object
Returns the value of attribute simulated_attacks
27 28 29 |
# File 'lib/bluewall.rb', line 27 def simulated_attacks @simulated_attacks end |
#strengths ⇒ Object
Returns the value of attribute strengths
27 28 29 |
# File 'lib/bluewall.rb', line 27 def strengths @strengths end |
#weaknesses ⇒ Object
Returns the value of attribute weaknesses
27 28 29 |
# File 'lib/bluewall.rb', line 27 def weaknesses @weaknesses end |
Instance Method Details
#to_s ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/bluewall.rb', line 28 def to_s blue_wall_logo = " \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2557\n \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u255D\u255A\u2588\u2588\u2551\n \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\n \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\n \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2551\n \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u255D\u255A\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u255D\u255A\u2550\u2550\u255D\n created by :cillia\n LOGO\n\n <<~AUDIT_REPORT\n \#{blue_wall_logo}\n --- BlueWall Audit Report ---\n Firewall Type: \#{firewall_type}\n ---------------------------\n Strengths:\n \#{strengths.empty? ? ' None identified.' : strengths.map { |s| \" - \#{s}\" }.join(\"\\n\")}\n Weaknesses:\n \#{weaknesses.empty? ? ' None identified.' : weaknesses.map { |w| \" - \#{w}\" }.join(\"\\n\")}\n Overall Security Score (1-10): \#{score.round(3)}\n Details: \#{details}\n ---------------------------\n Simulated Attack Scenarios:\n \#{simulated_attacks.empty? ? ' No scenarios tested or results found.' : simulated_attacks.map { |s| \" - \#{s}\" }.join(\"\\n\")}\n AUDIT_REPORT\nend\n".chomp |