Returns a hash of current configuration options.

 @return [Hash]
3301
def options
      Hash[
        DeskApi::Configuration.keys.map do |key|
          [key, instance_variable_get(:"@#{key}")]
        end
      ]
    end
1000101
def load_config_file_settings(config_file_hash)
      @login = config_file_hash.data[:login]
      @password = config_file_hash.data[:password]
      @cache_file_path = config_file_hash.data[:cache_file_path]
      @auto_check = config_file_hash.data[:auto_check]
    end
183723
def to_hash
      config = load_base_config
      config = config.deep_merge(load_env_config)
      config.deep_merge(load_jvm_config)
    end
788585
public static function config_get_hash_options() {
        $options = array(
            Memcached::HASH_DEFAULT => get_string('hash_default', 'cachestore_memcached'),
            Memcached::HASH_MD5 => get_string('hash_md5', 'cachestore_memcached'),
            Memcached::HASH_CRC => get_string('hash_crc', 'cachestore_memcached'),
            Memcached::HASH_FNV1_64 => get_string('hash_fnv1_64', 'cachestore_memcached'),
            Memcached::HASH_FNV1A_64 => get_string('hash_fnv1a_64', 'cachestore_memcached'),
            Memcached::HASH_FNV1_32 => get_string('hash_fnv1_32', 'cachestore_memcached'),
            Memcached::HASH_FNV1A_32 => get_string('hash_fnv1a_32', 'cachestore_memcached'),
            Memcached::HASH_HSIEH => get_string('hash_hsieh', 'cachestore_memcached'),
            Memcached::HASH_MURMUR => get_string('hash_murmur', 'cachestore_memcached'),
        );
        return $options;
    }
519324
def option_defaults
      out = {}
      @specific_options.each do |option|
        option.load_default(out)
      end

      @general_options.each do |_cls, option|
        out.merge! option.class.option_defaults
      end
      out
    end
618985
def auto_config? name
      return auto_config[name] if !auto_config[name].nil?
      Troles::Config.auto_config?(name)
    end
959114
def config_generation(options)
      config_contents = {}

      config_options = options.keys.map(&:to_sym).sort.uniq
      config_options.delete(:password)
      config_options.each do |config_option|
        config_contents.store(config_option.to_sym, options[config_option])
      end

      config_contents.store(:default_organization, options[:username])

      config_contents.to_yaml
    end
921003
def retriable_configuration
      Take2::Configuration::CONFIG_ATTRS.each_with_object({}) do |key, hash|
        hash[key] = send(key)
      end
    end
307797
def normalize_options(options)
      case options
      when Hash
        Hash[options.map{|k,v| [k.respond_to?(:to_sym) ? k.to_sym : k, v]}].tap do |opts|
          opts[:driver] = opts[:driver].to_s if opts[:driver]
        end
      when String, URI
        parse_connection_uri(options)
      else
        raise RDO::Exception,
          "Unsupported connection argument format: #{options.class.name}"
      end
    end
1073245
def options
      VALID_OPTION_KEYS.inject({}) do |option, key|
        option.merge!(key => send(key))
      end
    end
69807
def load_config
      @log.debug "loading validator-specific configuration"
      config = Autosign::Config.new

      if config.settings.to_hash[self.name].nil?
        @log.warn "Unable to load validator-specific configuration"
        @log.warn "Cannot load configuration section named '#{self.name}'"
        return {}
      else
        @log.debug "Set validator-specific settings from config file: " + config.settings.to_hash[self.name].to_s
        return config.settings.to_hash[self.name]
      end
    end
135610
function getUsageOptions() {
  var configData = this.config.data;
  if (configData.usage && configData.usage.options) {
    return configData.usage.options;
  }
  return {};
}
753721
def to_h
      configs = configurations.reverse.inject({}) do |memo, db_config|
        memo.merge(db_config.to_legacy_hash)
      end

      Hash[configs.to_a.reverse]
    end
392120
def process_options
        @options.verbose = false if @options.quiet
        @options.file = (user_home+"/.route53") if @options.file.nil?
        #setup file
        if @options.setup
          setup
        end
        load_config
        @config['access_key'] = @options.access unless @options.access.nil?
        @config['secret_key'] = @options.secret unless @options.secret.nil?


        required_options("",["--access-key"]) if @config['access_key'].nil? || @config['access_key'] == ""
        required_options("",["--secret_key"]) if @config['secret_key'].nil? || @config['secret_key'] == ""

      end
1161325
def rspec_options
      config = ::RSpec.configuration
      {}.tap do |opts|
        opts[:path] = config.dockerfile_path if config.dockerfile_path?
        opts[:rm] = config.rm_build if config.rm_build?
        opts[:log_level] = config.log_level if config.log_level?
      end
    end
34636
def normalize_defaults
      new_options = {}
      options.each do |key,value|
        unless value.nil?
          new_options[key.to_s] = value
          new_options[key.to_sym] = value
        end
      end
      options.merge!(new_options)
    end
958474
def relevant_configuration_file(options)
      if options[:config_file]
        options[:config_file]
      elsif File.exist?(Config::FILE_NAME)
        Config::FILE_NAME
      elsif File.exist?(Config.user_file)
        Config.user_file
      end
    end