2015-11-24 19:41:02 +00:00
|
|
|
class Desk < Formula
|
|
|
|
desc "Lightweight workspace manager for the shell"
|
|
|
|
homepage "https://github.com/jamesob/desk"
|
2015-12-14 20:41:34 +00:00
|
|
|
url "https://github.com/jamesob/desk/archive/v0.4.0.tar.gz"
|
|
|
|
sha256 "1589cb02d1104b4008d9d1a1ee1a315d0bf5a8e8d6f8408d9f60201a4f04c896"
|
2015-11-24 19:41:02 +00:00
|
|
|
|
2015-11-25 17:00:22 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-11-24 19:41:02 +00:00
|
|
|
def install
|
|
|
|
bin.install "desk"
|
2015-12-14 20:41:34 +00:00
|
|
|
bash_completion.install "shell_plugins/bash/desk"
|
|
|
|
zsh_completion.install "shell_plugins/zsh/_desk"
|
2015-11-24 19:41:02 +00:00
|
|
|
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
|