Sha256: d6397be77927e8413ebae7b019d0cfeb43f91d954038f2dfe8705483713b8b99

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

namespace :envious do
  namespace :heroku do
    desc "Push environment variables to heroku."
    task :push do
      rails_env = `heroku config:get RAILS_ENV`.strip
      Rails.env = rails_env.blank? ? 'production' : rails_env
      Kernel.system("heroku config:add #{Envious.vars_for_heroku}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
envious-0.3.1 lib/tasks/heroku.rake
envious-0.3.0 lib/tasks/heroku.rake
envious-0.2.0 lib/tasks/heroku.rake