setup_exec_task

in lib/appengine/tasks.rb [156:175]


      def setup_exec_task
        ::Rake.application.last_description =
          "Execute the given command in Google App Engine."
        ::Rake::Task.define_task "appengine:exec", [:cmd] do |_t, args|
          verify_gcloud_and_report_errors
          command = extract_command args[:cmd], ::ARGV
          app_exec = Exec.new command,
                              project:       ::ENV[PROJECT_ENV],
                              service:       ::ENV[SERVICE_ENV],
                              config_path:   ::ENV[CONFIG_ENV],
                              version:       ::ENV[VERSION_ENV],
                              timeout:       ::ENV[TIMEOUT_ENV],
                              wrapper_image: ::ENV[WRAPPER_IMAGE_ENV],
                              strategy:      ::ENV[STRATEGY_ENV],
                              gcs_log_dir:   ::ENV[GCS_LOG_DIR]
          start_and_report_errors app_exec
          exit
        end
      end