homebrew-core/Formula/ansible-cmdb.rb

23 lines
661 B
Ruby

class AnsibleCmdb < Formula
desc "Generates static HTML overview page from Ansible facts"
homepage "https://github.com/fboender/ansible-cmdb"
url "https://github.com/fboender/ansible-cmdb/releases/download/1.30/ansible-cmdb-1.30.tar.gz"
sha256 "a52c450abea8fa7d162445386e40e554db763e34695b50c64c43e98d594539f6"
license "GPL-3.0"
bottle :unneeded
depends_on "libyaml"
def install
prefix.install_metafiles
man1.install "ansible-cmdb.man.1" => "ansible-cmdb.1"
libexec.install Dir["*"] - ["Makefile"]
bin.write_exec_script libexec/"ansible-cmdb"
end
test do
system bin/"ansible-cmdb", "-dt", "html_fancy", "."
end
end