Class: TestCedar

Inherits:
BaseCommand show all
Defined in:
lib/commands/test_cedar.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#all_commands, #empty?, #initialize, #log_file

Constructor Details

This class inherits a constructor from BaseCommand

Instance Method Details

#after_commandObject



15
16
17
# File 'lib/commands/test_cedar.rb', line 15

def after_command
  "grep -q \"0 failures\" #{self.log_file}"
end

#before_commandObject

overrides from base class



8
9
# File 'lib/commands/test_cedar.rb', line 8

def before_command
end

#main_commandObject



11
12
13
# File 'lib/commands/test_cedar.rb', line 11

def main_command
  "#{test_command} > #{self.log_file} 2>&1"
end