72b3102da1
Closes #31163. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
22 lines
665 B
Ruby
22 lines
665 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.28/ansible-cmdb-1.28.tar.gz"
|
|
sha256 "88de6007988fe3438277ac2870c01973cadf0fc051a6e3f61769511ae50c348f"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "python@2"
|
|
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
|