Top Level Namespace

Defined Under Namespace

Classes: CObjects

Instance Method Summary collapse

Instance Method Details

#default_mysql_config_pathObject

The first mysql_config binary on PATH …



17
18
19
# File 'ext/extconf.rb', line 17

def default_mysql_config_path
  mysql_config_paths.compact.first
end

#mysql_config_pathsObject

Improved detection of mysql_config Code from DataObjects do_mysql adapter All instances of mysql_config on PATH …



9
10
11
12
13
14
# File 'ext/extconf.rb', line 9

def mysql_config_paths
  ENV['PATH'].split(File::PATH_SEPARATOR).collect do |path|
    [ "#{path}/mysql_config", "#{path}/mysql_config5" ].
      detect { |bin| File.exist?(bin) }
  end
end