23 lines
694 B
Ruby
23 lines
694 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.25/ansible-cmdb-1.25.zip"
|
|
sha256 "1a8e0c347f26c798ff361d8ce7d937d8739f327b71dff362aeee9775ba4235bc"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "python" if MacOS.version <= :snow_leopard
|
|
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
|