Module: Islo::Mysql

Defined in:
lib/islo/commands/mysql.rb

Overview

MySQL support

Defined Under Namespace

Classes: Client, Init, Server

Class Method Summary collapse

Class Method Details

.basedirObject



59
60
61
62
63
64
65
66
67
68
# File 'lib/islo/commands/mysql.rb', line 59

def self.basedir
  path = %x(which mysql)

  fail Command::Error, 'could not find mysql' if path.empty?

  path = File.dirname(path)
  path = File.dirname(path)

  path
end