service_from_config

in lib/google/serverless/exec.rb [584:593]


      def service_from_config
        return nil if !@config_path && @service
        @config_path ||= Exec.default_config_path
        ::YAML.load_file(config_path)["service"]
      rescue ::Errno::ENOENT
        raise ConfigFileNotFound, @config_path
      rescue ::StandardError
        raise BadConfigFileFormat, @config_path
      end