Skip to content

Commit

Permalink
moved app_bootstrap from vendor/plugins to lib/tasks, removed obsolet…
Browse files Browse the repository at this point in the history
…e gems requirements
  • Loading branch information
stiff committed Jan 31, 2011
1 parent e6988be commit 4677646
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace :app do
task :bootstrap => :setup do
Debugger.start
Debugger.start if Kernel.const_defined?(:Debugger)
say "Bootstrapping #{@app_name}..."

puts
Expand Down Expand Up @@ -52,7 +52,7 @@ namespace :app do
end
end
require 'erb'
erb = ERB.new(IO.read(File.join(File.dirname(__FILE__), '..', 'database.erb')), nil, '<>')
erb = ERB.new(IO.read('config/app_bootstrap-database-template.erb'), nil, '<>')
File.open File.expand_path(db_config), 'w' do |f|
f.write erb.result(options.get_binding)
end
Expand Down Expand Up @@ -102,16 +102,12 @@ namespace :app do
puts
say "#{@app_name} is ready to roll."
say "Okay, thanks for bootstrapping! I know I felt some chemistry here, did you?"
say "Now, start the application with 'script/server' and get to work!"
say "Now, start the application with 'rails server' and get to work!"
Rake::Task["db:test:clone"].invoke
end

task :setup do
require 'rubygems'
gem 'highline'
gem 'ruby-debug'
require 'ostruct'
require 'ruby-debug'
require 'highline'
require 'forwardable'
@terminal = HighLine.new
Expand Down

0 comments on commit 4677646

Please sign in to comment.