Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactors

  • Loading branch information...
commit 92290bf549619f976b8395a16ce0f52aca166eb4 1 parent b02daf8
@arturopie arturopie authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/hydra/runner.rb
View
6 lib/hydra/runner.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.