lib/neetob/cli/heroku/execute.rb in neetob-0.2.2 vs lib/neetob/cli/heroku/execute.rb in neetob-0.2.3
- old
+ new
@@ -15,10 +15,10 @@
@should_run_in_rails_console = should_run_in_rails_console
@sandbox = sandbox
end
def run
- matching_apps = find_all_matching_apps(apps, :heroku, sandbox)
+ matching_apps = find_all_matching_apps_or_repos(apps, :heroku, sandbox)
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 run "#{heroku_command}" -a #{app}`