gapic-generator/lib/gapic/schema/api.rb
# Structured Hash representation of the configuration file.
# @return [Hash]
#   A Hash of the configuration values.
Structured Hash representation of the configuration file.
Structured Hash representation of the configuration file .
def configuration
        @configuration ||= begin
          config_file = protoc_options["configuration"]
          config = config_file ? YAML.load_file(config_file) : {}
          protoc_options.each do |k, v|
            next if k == "configuration"
            branch = parse_key(key_to_str(k)).reverse.inject(v) { |m, s| { str_to_key(s) => m } }
            config = deep_merge config, branch
          end
          config
        end
      end
def configuration @configuration ||= begin config_file = protoc_options [ "configuration" ] config = config_file ? YAML . load_file ( config_file ) : { } protoc_options . each do | k , v | next if k == "configuration" branch = parse_key ( key_to_str ( k ) ) . reverse . inject ( v ) { | m , s | { str_to_key ( s ) => m } } config = deep_merge config , branch end config end end
Structured Hash representation of the configuration file.
Structured Hash representation of the configuration file .
A Hash of the configuration values.
A Hash of the configuration values .
Hash