class SchemaEvolutionManager < Formula desc "Manage postgresql database schema migrations" homepage "https://github.com/mbryzek/schema-evolution-manager" url "https://github.com/mbryzek/schema-evolution-manager/archive/0.9.41.tar.gz" sha256 "d97b6f0f97bc77dd97aeecb36a77fbe4e7840c9b71bd7c8880d8df82ab1fdf16" bottle :unneeded def install system "./install.sh", prefix end test do (testpath/"new.sql").write <<~EOS CREATE TABLE IF NOT EXISTS test (id text); EOS system "git", "init", "." assert_match "File staged in git", shell_output("#{bin}/sem-add ./new.sql") end end