update initialize script for projects that don't use gemfile.erb

This commit is contained in:
John Bintz 2011-07-14 15:54:10 -04:00
parent b0cd8bc42b
commit d5202c6193
1 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env ruby
if File.file?('Gemfile.erb')
pwd = Dir.pwd
Dir.chdir '..' do
@ -13,6 +14,10 @@ end
puts "Bundling for local environment"
system %{script/gemfile local}
else
puts "Bundling..."
system %{bundle}
end
puts "Installing git hooks"
system %{script/install-git-hooks}