homebrew-core/Formula/ansible-cmdb.rb
2018-04-30 01:54:32 -07:00

22 lines
662 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.27/ansible-cmdb-1.27.zip"
sha256 "2b276140effb3056ebe921f70893edd8d1eb57e95fb57749e1c81c65acfbc655"
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