class Stratocumulus::MySQL
Public Instance Methods
command()
click to toggle source
# File lib/stratocumulus/database/mysql.rb, line 6 def command command = "mysqldump " command << "--single-transaction " command << "--quick " command << "-u#{username} " command << "-h#{host} " unless socket? command << "-P#{port} " unless socket? command << "-p#{@password} " if @password command << @name end
dependencies()
click to toggle source
Calls superclass method
Stratocumulus::Database#dependencies
# File lib/stratocumulus/database/mysql.rb, line 17 def dependencies super + ["mysqldump"] end
Private Instance Methods
host()
click to toggle source
# File lib/stratocumulus/database/mysql.rb, line 27 def host @host || "localhost" end
port()
click to toggle source
# File lib/stratocumulus/database/mysql.rb, line 31 def port @port || 3306 end
username()
click to toggle source
# File lib/stratocumulus/database/mysql.rb, line 23 def username @username || "root" end