homebrew-core/Formula/aptly-completion.rb

19 lines
554 B
Ruby
Raw Normal View History

class AptlyCompletion < Formula
desc "Bash completion for Aptly"
homepage "https://github.com/aptly-dev/aptly-bash-completion"
2017-03-28 05:13:28 +00:00
url "https://github.com/aptly-dev/aptly-bash-completion/archive/1.0.0.tar.gz"
sha256 "d5e8f51c82f35db7d25ddfb7e3898ec09338829c474733bbbd01c893ad6fa3a5"
head "https://github.com/aptly-dev/aptly-bash-completion.git"
bottle :unneeded
def install
bash_completion.install "aptly"
end
test do
assert_match "-F _aptly",
shell_output("source #{bash_completion}/aptly && complete -p aptly")
end
end