Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Sep 23, 2011
1 parent 72424c0 commit 0c3840d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/kumade/command_line.rb
@@ -1,21 +1,14 @@
require 'cocaine'

module Kumade
class CommandFailedError < RuntimeError
end

class CommandLine < Base
def initialize(command_to_run)
super()
@command_line = Cocaine::CommandLine.new(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
Expand Down

0 comments on commit 0c3840d

Please sign in to comment.