homebrew-core/Formula/mysqltuner.rb
2019-06-18 08:56:14 +02:00

20 lines
730 B
Ruby

class Mysqltuner < Formula
desc "Increase performance and stability of a MySQL installation"
homepage "https://raw.github.com/major/MySQLTuner-perl/master/mysqltuner.pl"
url "https://github.com/major/MySQLTuner-perl/archive/1.7.15.tar.gz"
sha256 "1486bd7baaab06a2cffd0783ae17bd5a0d7240c08b920c82185097ccda69fcc8"
head "https://github.com/major/MySQLTuner-perl.git"
bottle :unneeded
def install
bin.install "mysqltuner.pl" => "mysqltuner"
end
# mysqltuner analyzes your database configuration by connecting to a
# mysql server. It is not really feasible to spawn a mysql server
# just for a test case so we'll stick with a rudimentary test.
test do
system "#{bin}/mysqltuner", "--help"
end
end