Skip to content

Instantly share code, notes, and snippets.

@yesezra
Created October 27, 2010 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yesezra/650275 to your computer and use it in GitHub Desktop.
Save yesezra/650275 to your computer and use it in GitHub Desktop.
for posterity :(
task :gem_path do
run <<-EOC
sed '1 a \ENV["GEM_PATH"] = File.expand_path("~/.gems")' #{current_path}/config/preinitializer.rb > ~/tmpfile
EOC
run "mv ~/tmpfile #{current_path}/config/preinitializer.rb"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment