lib/figaro/tasks.rake in figaro-0.5.0 vs lib/figaro/tasks.rake in figaro-0.5.1

- old
+ new

@@ -1,9 +1,6 @@ namespace :figaro do desc "Configure Heroku according to application.yml" task :heroku, [:app] => :environment do |_, args| - app = args[:app] ? " --app #{args[:app]}" : "" - rails_env = Kernel.system("heroku config:get RAILS_ENV#{app}").presence - Rails.env = rails_env if rails_env - Kernel.system("heroku config:add #{Figaro.vars}#{app}") + Figaro::Tasks.heroku(args[:app]) end end