homebrew-core/Formula/desk.rb
Christian Michael Paul Bankester 03fc4c717e desk 0.4.1
Closes Homebrew/homebrew#49002.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-02-09 21:09:38 +00:00

22 lines
707 B
Ruby

class Desk < Formula
desc "Lightweight workspace manager for the shell"
homepage "https://github.com/jamesob/desk"
url "https://github.com/jamesob/desk/archive/v0.4.1.tar.gz"
sha256 "a6634bb0702a9c66ec1f19ac6f36ba09742ab8bd3ba1ed4e0643c02a8103eae4"
bottle :unneeded
def install
bin.install "desk"
bash_completion.install "shell_plugins/bash/desk"
zsh_completion.install "shell_plugins/zsh/_desk"
fish_completion.install "shell_plugins/fish/desk.fish"
end
test do
(testpath/".desk/desks/test-desk.sh").write("#\n# Description: A test desk\n#")
list = pipe_output("#{bin}/desk list")
assert_match /test-desk/, list
assert_match /A test desk/, list
end
end