Skip to content

Commit

Permalink
renamed HOBO_REPO in preparation for git support
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed May 12, 2008
1 parent e25d330 commit c9a7131
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hobo/bin/hobo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/usr/bin/env ruby

require 'fileutils'
Signal.trap("INT") { puts; exit }
Expand All @@ -15,7 +15,7 @@ Options:
-d | --database <database> # e.g. mysql, sqlite
"

HOBO_REPO = "svn://hobocentral.net/hobo/trunk/hobo"
HOBO_REPO_SVN = "svn://hobocentral.net/hobo/trunk/hobo"


### Nasty stuff needed for Windows :-( ###
Expand All @@ -26,7 +26,7 @@ if Config::CONFIG["arch"] =~ /win32/
def system(command)
win = Win32API.new("crtdll", "system", ['P'], 'L').Call(command)
end
end
end
### end nasty stuff ###


Expand Down Expand Up @@ -61,7 +61,7 @@ until ARGV.empty?
else
puts USAGE
exit 1
end
end
end

puts "\nGenerating Rails app...\n"
Expand All @@ -78,13 +78,13 @@ Dir.chdir(app_path) do

if hobo_svn
puts "\nInstalling Hobo plugin via svn checkout...\n"
command("svn co #{HOBO_REPO} vendor/plugins/hobo")
command("svn co #{HOBO_REPO_SVN} vendor/plugins/hobo")
else
puts "\nInstalling Hobo plugin...\n"
FileUtils.cp_r hobo_src, "vendor/plugins/hobo"
end

puts "\nInitialising Hobo...\n"
puts "\nInitialising Hobo...\n"
command(gen, "hobo --add-routes")

puts "\nInstalling Hobo Rapid and default theme...\n"
Expand All @@ -95,10 +95,10 @@ Dir.chdir(app_path) do
command("#{gen} hobo_user_model #{user_model}")
command("#{gen} hobo_user_controller #{user_model}")
end

puts "\nCreating standard pages...\n"
command("#{gen} hobo_front_controller front --delete-index --add-routes")

if create_db
puts "\nCreating databases"
command("rake db:create:all")
Expand Down

0 comments on commit c9a7131

Please sign in to comment.