Top Level Namespace
Defined Under Namespace
Classes: Mysql
Constant Summary collapse
- MysqlRes =
cMysqlRes
- MysqlField =
cMysqlField
- MysqlError =
eMysql
Instance Method Summary collapse
Instance Method Details
#die(message) ⇒ Object
11 12 13 14 |
# File 'ext/extconf.rb', line 11 def die() $stderr.puts "*** ERROR: #{}" exit 1 end |
#exec_command(command, flag_raise = false) ⇒ Object
3 4 5 6 7 8 9 |
# File 'ext/extconf.rb', line 3 def exec_command(command, flag_raise=false) output = `#{command}` return output.chomp if $? == 0 msg = "failed: #{command}" raise msg if flag_raise die msg end |