lib/neetob/cli/heroku/execute.rb in neetob-0.1.2 vs lib/neetob/cli/heroku/execute.rb in neetob-0.1.4
- old
+ new
@@ -16,14 +16,14 @@
@sandbox = sandbox
end
def run
matching_apps = find_all_matching_apps(apps, :heroku, sandbox)
- rails_runner_command = "heroku run rails runner '#{command_to_execute}'"
+ rails_runner_command = "rails runner '#{command_to_execute}'"
heroku_command = should_run_in_rails_console ? rails_runner_command : command_to_execute
matching_apps.each do |app|
ui.info("\n Working on #{app}\n")
- output = `#{heroku_command} -a #{app}`
+ output = `heroku run "#{heroku_command}" -a #{app}`
unless $?.success?
ui.error("There is a problem in accessing the app with name \"#{app}\" in your account.")
ui.error("Please check the specified app name and ensure you're authorized to view that app.")
next
end