2011-08-18 21:45:59 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2012-10-09 15:29:17 +00:00
|
|
|
puts "Bundling..."
|
|
|
|
system %{bundle}
|
2011-08-18 21:45:59 +00:00
|
|
|
|
|
|
|
puts "Installing git hooks"
|
|
|
|
system %{script/install-git-hooks}
|
|
|
|
|
|
|
|
bundle = File.file?('Gemfile') ? 'bundle exec' : ''
|
|
|
|
|
|
|
|
command = [ bundle, 'rake', '-s', '-T', 'bootstrap' ]
|
|
|
|
|
|
|
|
if !(%x{#{command.join(' ')}}).empty?
|
|
|
|
puts "Trying to run rake bootstrap..."
|
|
|
|
system %{#{bundle} rake bootstrap}
|
|
|
|
end
|
|
|
|
|
|
|
|
puts "Done!"
|
|
|
|
|