pgtoolkit 1.0.2 (new formula)

pgtoolkit 1.0.2

pgtoolkit contains at present only the "pgcompact" script for reducing
bloat in PostgreSQL tables; the developers plan to add others in the
future.

Closes #76.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Steve Huff 2016-04-05 11:03:16 -04:00 committed by Andrew Janke
parent bea03940f2
commit cc8640e823

31
Formula/pgtoolkit.rb Normal file
View file

@ -0,0 +1,31 @@
class Pgtoolkit < Formula
desc "Tools for PostgreSQL maintenance"
homepage "https://github.com/grayhemp/pgtoolkit"
url "https://github.com/grayhemp/pgtoolkit/archive/v1.0.2.tar.gz"
sha256 "d86f34c579a4c921b77f313d4c7efbf4b12695df89e6b68def92ffa0332a7351"
# depends on system Perl, no other dependencies
def install
executables = [
"pgcompact",
]
docs = [
"CHANGES.md",
"LICENSE.md",
"README.md",
"TODO.md",
]
executables.each { |executable| bin.install "fatpack/#{executable}" }
docs.each { |document| doc.install document }
end
test do
output = IO.popen("#{bin}/pgcompact --help")
matches = output.readlines.select { |line| line =~ /pgcompact - PostgreSQL bloat reducing tool/ }
!matches.empty?
end
end