Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

load env in rake task

  • Loading branch information...
commit 5c16022e19dbdbdc65df54a9585770104f28f8af 1 parent a514634
@bookis bookis authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/tasks/update.rake
View
1  lib/tasks/update.rake
@@ -9,6 +9,7 @@ namespace :twitter do
end
task :update_handle do
+ Rake::Task[:environment].invoke
people_and_handles = [["Aaron Patterson", "tenderlove"], ["Damon Danieli", "damondanieli"], ["Dave Myron", "orngchkn"], ["Eric Hodel", "drbrain"], ["Eric Wong", "the_eric_wong"], ["Evan Phoenix", "evanphx"], ["Jack Danger Canty", "jackdanger"], ["John Barnette", "jbarnette"], ["Mike Mondragon", "monde"], ["Phil Hagelberg", "technomancy"], ["Wilson Bilkovich", "defiler"], ["Alex Vollmer", "alexvollmer"], ["Geoffrey Grosenbach", "topfunky"], ["Pete Higgins", "pete_higgins"]]
people_and_handles.each do |name, handle|
Dude.where(name: name).first.update_attributes(twitter: handle)
Please sign in to comment.
Something went wrong with that request. Please try again.