Skip to content

Commit

Permalink
add a utils directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jcran committed Jan 5, 2012
1 parent 88c68f1 commit 32676fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions util/load_domains.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/ruby

require "#{File.expand_path(File.dirname(__FILE__))}/../config/environment"

f = File.open(ARGV[0])

puts "Importing..."
f.each { |line|
d = Domain.create :name => line.chomp
}
puts "Done."

0 comments on commit 32676fc

Please sign in to comment.