#!/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

#!/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"
  exec("rake cruise")
when "aba"
  exec("svn co svn+ssh://butlerpress.com/var/repos/aba/trunk local && rake cruise")
when "atra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/atra/trunk local && rake cruise")
when "obra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/obra/trunk local && rake cruise")
when "wsba"
  exec("svn co svn+ssh://butlerpress.com/var/repos/wsba/trunk local && rake cruise")
else
  raise "Don't know how to build project named: '#{project_name}'"
end

Add rake back for racing_on_rals project. Add all the projects.
Add rake back for racing_on_rals project. Add all the projects.

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