18 lines
598 B
Ruby
18 lines
598 B
Ruby
class Mysqltuner < Formula
|
|
homepage "http://mysqltuner.com"
|
|
url "https://github.com/major/MySQLTuner-perl/archive/v1.4.0.tar.gz"
|
|
sha256 "8d5a03b64da2164c6bd93b79700c93db088a14155bcc8cb63c65d049909d793e"
|
|
head "https://github.com/major/MySQLTuner-perl.git"
|
|
|
|
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
|