Method: AppUpdate#run
- Defined in:
- lib/app_update.rb
#run ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/app_update.rb', line 57 def run # If extra_args is empty, we need to look at all apps that were deployed # here before. app_names = extra_args if app_names.empty? begin app_names = IO.readlines(applications_path).map(&:chomp) rescue Errno::ENOENT warn "Could not read application names from #{APP_CONFIG}." end end # Iterate over all applications, updating every one of them. successful_apps = app_names.select do |name| run_for_app name end # Keep track of what applications are deployed here. File.write applications_path, successful_apps.join("\n") end |