class Object
Public Instance Methods
default_mysql_config_path()
click to toggle source
The first #mysql_config binary on PATH …
# File ext/do_mysql/extconf.rb, line 18 def default_mysql_config_path mysql_config_paths.compact.first end
default_prefix()
click to toggle source
# File ext/do_mysql/extconf.rb, line 26 def default_prefix if mc = default_mysql_config_path File.dirname(File.dirname(mc)) else "/usr/local" end end
mysql_config(type)
click to toggle source
# File ext/do_mysql/extconf.rb, line 22 def mysql_config(type) IO.popen("#{default_mysql_config_path} --#{type}").readline.chomp rescue nil end
mysql_config_paths()
click to toggle source
All instances of #mysql_config on PATH …
# File ext/do_mysql/extconf.rb, line 10 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
secure?()
click to toggle source
# File lib/do_mysql.rb, line 51 def secure? false end
using_socket?()
click to toggle source
# File lib/do_mysql.rb, line 47 def using_socket? @using_socket end