From 0c3840dc42a99abdd011cb0a99355f51402da673 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Fri, 23 Sep 2011 14:21:46 -0400 Subject: [PATCH] Fixup. --- lib/kumade/command_line.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/kumade/command_line.rb b/lib/kumade/command_line.rb index a0537b2..931aa9b 100644 --- a/lib/kumade/command_line.rb +++ b/lib/kumade/command_line.rb @@ -1,9 +1,6 @@ require 'cocaine' module Kumade - class CommandFailedError < RuntimeError - end - class CommandLine < Base def initialize(command_to_run) super() @@ -11,11 +8,7 @@ def initialize(command_to_run) end def run_or_error(error_message = nil) - if run_with_status - true - else - error(error_message) - end + run_with_status || error(error_message) end def run_with_status