lib/konstant/runner.rb in konstant-0.0.9 vs lib/konstant/runner.rb in konstant-0.0.10
- old
+ new
@@ -1,5 +1,7 @@
+require "bundler"
+
class Konstant::Runner
def initialize(build, task)
@build = build
@task = task
@@ -10,10 +12,10 @@
def run
if task == "build" || File.exists?("#{build.project.path}/#{task}")
duration = Konstant.measure do
build.create
File.open status_file, "w" do |f|
- Bundler.with_clean_env do
+ ::Bundler.with_clean_env do
system environment, "#{build.project.path}/#{task} > #{stdout_file} 2> #{stderr_file}"
f.puts $?.exitstatus
end
end
end
\ No newline at end of file