Class: Islo::Mysql::Init

Inherits:
Command show all
Defined in:
lib/islo/commands/mysql.rb

Overview

MySQL initializer

Instance Attribute Summary

Attributes inherited from Command

#command, #title, #wd

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#exec, #initialize, #title?

Constructor Details

This class inherits a constructor from Islo::Command

Class Method Details

.nameObject



43
44
45
# File 'lib/islo/commands/mysql.rb', line 43

def self.name
  :mysql_install_db
end

Instance Method Details

#argsObject



47
48
49
50
51
52
53
54
# File 'lib/islo/commands/mysql.rb', line 47

def args
  %W(
    --no-defaults
    --basedir=#{Mysql.basedir}
    --datadir=#{wd}/db/mysql
    --pid-file=#{wd}/tmp/pids/mysqld.pid
  ) + super
end