Class: TestCedar
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- TestCedar
- Defined in:
- lib/commands/test_cedar.rb
Instance Method Summary collapse
- #after_command ⇒ Object
-
#before_command ⇒ Object
overrides from base class.
- #main_command ⇒ Object
Methods inherited from BaseCommand
#all_commands, #empty?, #initialize, #log_file
Constructor Details
This class inherits a constructor from BaseCommand
Instance Method Details
#after_command ⇒ Object
15 16 17 |
# File 'lib/commands/test_cedar.rb', line 15 def after_command "grep -q \"0 failures\" #{self.log_file}" end |
#before_command ⇒ Object
overrides from base class
8 9 |
# File 'lib/commands/test_cedar.rb', line 8 def before_command end |
#main_command ⇒ Object
11 12 13 |
# File 'lib/commands/test_cedar.rb', line 11 def main_command "#{test_command} > #{self.log_file} 2>&1" end |