Created
March 19, 2017 21:41
-
-
Save zizzfizzix/b48079964a27c7e7d37dc37969607bae to your computer and use it in GitHub Desktop.
ansible-lint homebrew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnsibleLint < Formula | |
include Language::Python::Virtualenv | |
desc "checks playbooks for practices and behaviour that can be improved" | |
homepage "https://github.com/willthames/ansible-lint" | |
url "https://github.com/willthames/ansible-lint/archive/v3.4.12.tar.gz" | |
sha256 "cf97675d2908f865e7657d7082ba84c8adf4f3775e3920a6d4b9f171a5fdda2a" | |
depends_on :python if MacOS.version <= :snow_leopard | |
depends_on "ansible" => :python | |
resource "pyyaml" do | |
url "https://pypi.python.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz" | |
sha256 "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab" | |
end | |
resource "six" do | |
url "https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz" | |
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" | |
end | |
def install | |
virtualenv_install_with_resources | |
end | |
test do | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# This test will fail and we won't accept that! It's enough to just replace | |
# "false" with the main program this formula installs, but it'd be nice if you | |
# were more thorough. Run the test with `brew test ansible-lint`. Options passed | |
# to `brew install` such as `--HEAD` also need to be provided to `brew test`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "do", "something"`. | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment