Class: CheckFinishedCommand
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- CheckFinishedCommand
- Defined in:
- lib/audit/lib/parser/command/check_finished_command.rb
Constant Summary collapse
- COMMAND =
"CHECK_FINISHED"
Instance Attribute Summary
Attributes inherited from AbstractCommand
Instance Method Summary collapse
-
#initialize(check, severity, args) ⇒ CheckFinishedCommand
constructor
A new instance of CheckFinishedCommand.
- #result ⇒ Object
Methods inherited from AbstractCommand
Constructor Details
#initialize(check, severity, args) ⇒ CheckFinishedCommand
Returns a new instance of CheckFinishedCommand.
35 36 37 38 39 40 |
# File 'lib/audit/lib/parser/command/check_finished_command.rb', line 35 def initialize(check, severity, args) @exit_code = args[0] if args.length >= 1 or raise ParseException, "#{check.id} #{COMMAND} did not supply the exit code argument" = args[1 .. -1].join if args.length >= 2 super(check, severity, ) end |
Instance Method Details
#result ⇒ Object
42 43 44 |
# File 'lib/audit/lib/parser/command/check_finished_command.rb', line 42 def result() return CheckFinishedCommandResult.new(@check, @severity, @message, @exit_code) end |