#!/usr/bin/env ruby

project_name = ARGV.first

case project_name
when "racing_on_rails"
  # Nothing else to get
when "atra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/atra/trunk local")
else
  raise "Don't know how to build project named: '#{project_name}'"
end

exec("rake cruise")

#!/usr/bin/env ruby

# Yes, this could be more abstracted, etc. Choosing explicitness for now.
# svn co and rake co need to be in same exec, or cruise just ends build after svn returns
#
# Intentionally doing svn co and rake cruise in separate processes to ensure that all of the
# local overrides are loaded by Rake.

project_name = ARGV.first

case project_name
when "racing_on_rails"
  # Nothing else to get
when "atra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/atra/trunk local && rake cruise")
else
  raise "Don't know how to build project named: '#{project_name}'"
end

Put svn co and rake task in same exec statement for unified return code
Put svn co and rake task in same exec statement for unified return code

git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@1423 2d86388d-c40f-0410-ad6a-a69da6a65d20
