resolve_strategy app_env

in lib/google/serverless/exec.rb [572:583]


      def resolve_strategy app_env
        @strategy = @strategy.to_s.downcase
        if @strategy.empty?
          @strategy = app_env == "flexible" ? "cloud_build" : "deployment"
        end
        if app_env == "standard" && @strategy == "cloud_build" ||
           @strategy != "cloud_build" && @strategy != "deployment"
          raise UnsupportedStrategy.new @strategy, app_env
        end
        @strategy
      end