2014-03-14 08:23:28 -04:00
|
|
|
Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
|
2014-03-14 04:44:16 -04:00
|
|
|
|
|
|
|
desc "GITLAB | Run spinach"
|
|
|
|
task :spinach do
|
|
|
|
cmds = [
|
|
|
|
%W(rake gitlab:setup),
|
|
|
|
%W(spinach),
|
|
|
|
]
|
|
|
|
|
|
|
|
cmds.each do |cmd|
|
2014-05-26 14:54:57 -04:00
|
|
|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) ||
|
|
|
|
raise "#{cmd} failed!"
|
2014-03-14 04:44:16 -04:00
|
|
|
end
|
|
|
|
end
|