ryanb / populator

Mass populate an Active Record database.

This URL has Read+Write access

phlawski (author)
Thu Apr 23 12:33:25 -0700 2009
commit  1d723e75b1a79f07c7dd2438fee55887406fb9db
tree    f91976f2c44d96a8bd56331fa687e5809f6245c2
parent  b3f771995a19c05822a9d2444cbc7b35c080e005
populator / script / console
100755 9 lines (7 sloc) 0.381 kb
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
# File: script/console
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
 
# loading the spec_helper file even though this isn't necessarily for specs
# it's just a convenient, quick way to load all the requirements.
puts "Loading populator gem"
exec "#{irb} -r irb/completion -r #{File.dirname(__FILE__) + '/../spec/spec_helper.rb'} --simple-prompt"