提交 ec2b2654 编写于 作者: J Jeremy Kemper

Make root_dir a method so rails can call it

上级 a4aa95ba
#!/usr/bin/env ruby
require 'fileutils'
include FileUtils
puts "[CruiseControl] Rails build"
def root_dir
@root_dir ||= File.expand_path('../..', __FILE__)
end
def rake(*tasks)
tasks.map { |task| system "#{root_dir}/bin/rake", task }.join("\n")
end
puts "[CruiseControl] Rails build"
build_results = {}
root_dir = File.expand_path('../..', __FILE__)
# Requires gem home and path to be writeable and/or overridden to be ~/.gem,
# Will enable when RubyGems supports this properly (in a coming release)
......@@ -16,10 +21,6 @@
# A security hole, but there is nothing valuable on rails CI box anyway.
build_results[:geminstaller] = system "sudo geminstaller --config=#{root_dir}/ci/geminstaller.yml --exceptions"
def rake(*tasks)
tasks.map { |task| system "#{root_dir}/bin/rake", task }.join("\n")
end
cd root_dir do
puts
puts "[CruiseControl] Bundling RubyGems"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册