homebrew-core/Formula/ansible-cmdb.rb

23 lines
670 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.31/ansible-cmdb-1.31.tar.gz"
sha256 "ab1be4a85184647bcec08d4e65bda66c7d08c0f88c81eca4d0e44e02b768c2bb"
license "GPL-3.0-or-later"
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