If I set up some environment variables in an application.yml
file is there a way to access them inside a rake task? Doing env['VARIABLE_NAME']
doesn't work and neither does Rails.env['VARIABLE_NAME']
My rake task:
task :create_new_assignment => [:environment] do
puts env['VARIABLE_NAME'] # => fails.
end