# File lib/heroku/command/config.rb, line 25 def add unless args.size > 0 and args.all? { |a| a.include?('=') } raise CommandFailed, "Usage: heroku config:add <key>=<value> [<key2>=<value2> ...]" end vars = args.inject({}) do |vars, arg| key, value = arg.split('=', 2) vars[key] = value vars end display "Adding config vars:" display_vars(vars, :indent => 2) display "Restarting app...", false heroku.add_config_vars(app, vars) display "done." end