Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicinabox committed Sep 25, 2013
1 parent 5c40241 commit bbf3bbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/boxcar/command.rb
Expand Up @@ -3,6 +3,7 @@

module Boxcar
module Command
class CommandFailed < RuntimeError; end
extend Boxcar::Helpers

def self.load
Expand All @@ -23,6 +24,10 @@ def self.current_command
@current_command
end

def self.current_command=(new_current_command)
@current_command = new_current_command
end

def self.prepare_run(cmd, args=[])
command = parse(cmd)

Expand Down
3 changes: 3 additions & 0 deletions lib/boxcar/command/base.rb
Expand Up @@ -124,4 +124,7 @@ def self.extract_options(help)
end
end

def current_command
Boxcar::Command.current_command
end
end

0 comments on commit bbf3bbc

Please sign in to comment.