homebrew-core/Formula/desk.rb
matteocng a4a4c1e282 desk 0.5.1
Closes #1214.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-05-16 19:47:30 -07: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.5.1.tar.gz"
sha256 "1f7b9ba4883a942518bb8fe2dffcfef319e1017abd1a8798859ceb0c3d884e88"
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