22 lines
721 B
Ruby
22 lines
721 B
Ruby
class PackerCompletion < Formula
|
|
desc "Bash completion for Packer"
|
|
homepage "https://github.com/mrolli/packer-bash-completion"
|
|
url "https://github.com/mrolli/packer-bash-completion/archive/1.4.3.tar.gz"
|
|
sha256 "af7b3b49b29ffdb05b519dad2d83066f3d166dd8e29abd406ca0f3d480901df4"
|
|
license "MIT"
|
|
head "https://github.com/mrolli/packer-bash-completion.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "e607f862efdc7c44bbf62da84a69d6986251af7e8a030809bcacc3b24804258c"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "packer"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _packer_completion",
|
|
shell_output("bash -c 'source #{bash_completion}/packer && complete -p packer'")
|
|
end
|
|
end
|