Permalink
Browse files

refactors

  • Loading branch information...
1 parent b02daf8 commit 92290bf549619f976b8395a16ce0f52aca166eb4 @arturopie arturopie committed Feb 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/hydra/runner.rb
View
@@ -26,7 +26,7 @@ def initialize(opts = {})
@verbose = opts.fetch(:verbose) { false }
@event_listeners = Array( opts.fetch( :runner_listeners ) { nil } )
@options = opts.fetch(:options) { "" }
- @directory = RUBY_VERSION < "1.9" ? "" : Dir.pwd + "/"
+ @directory = get_directory
$stdout.sync = true
runner_begin
@@ -303,6 +303,10 @@ def redirect_output file_name
$stderr = $stdout = File.open(DEFAULT_LOG_FILE, 'a')
end
end
+
+ def get_directory
+ RUBY_VERSION < "1.9" ? "" : Dir.pwd + "/"
+ end
end
end

0 comments on commit 92290bf

Please sign in to comment.