Class: BlueWall::AuditResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/bluewall.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailsObject

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



27
28
29
# File 'lib/bluewall.rb', line 27

def details
  @details
end

#firewall_typeObject

Returns the value of attribute firewall_type

Returns:

  • (Object)

    the current value of firewall_type



27
28
29
# File 'lib/bluewall.rb', line 27

def firewall_type
  @firewall_type
end

#framework_assessmentsObject

Returns the value of attribute framework_assessments

Returns:

  • (Object)

    the current value of framework_assessments



27
28
29
# File 'lib/bluewall.rb', line 27

def framework_assessments
  @framework_assessments
end

#rulesObject

Returns the value of attribute rules

Returns:

  • (Object)

    the current value of rules



27
28
29
# File 'lib/bluewall.rb', line 27

def rules
  @rules
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



27
28
29
# File 'lib/bluewall.rb', line 27

def score
  @score
end

#simulated_attacksObject

Returns the value of attribute simulated_attacks

Returns:

  • (Object)

    the current value of simulated_attacks



27
28
29
# File 'lib/bluewall.rb', line 27

def simulated_attacks
  @simulated_attacks
end

#strengthsObject

Returns the value of attribute strengths

Returns:

  • (Object)

    the current value of strengths



27
28
29
# File 'lib/bluewall.rb', line 27

def strengths
  @strengths
end

#weaknessesObject

Returns the value of attribute weaknesses

Returns:

  • (Object)

    the current value of weaknesses



27
28
29
# File 'lib/bluewall.rb', line 27

def weaknesses
  @weaknesses
end

Instance Method Details

#to_sObject



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
   = "    \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