2015-03-23 22:36:09 +00:00
|
|
|
class Gws < Formula
|
2015-06-02 15:53:34 +00:00
|
|
|
desc "Manage workspaces composed of git repositories"
|
2015-10-23 11:13:58 +00:00
|
|
|
homepage "https://streakycobra.github.io/gws/"
|
2015-11-26 23:39:46 +00:00
|
|
|
url "https://github.com/StreakyCobra/gws/archive/0.1.8.tar.gz"
|
|
|
|
sha256 "c240601b0adcc5ae402199217fc0d5fd6775ada69919a860ad3c1c4b16805e63"
|
2015-03-23 22:36:09 +00:00
|
|
|
|
2015-10-23 11:13:58 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-03-23 22:36:09 +00:00
|
|
|
depends_on "bash"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "src/gws"
|
|
|
|
|
|
|
|
bash_completion.install "completions/bash"
|
|
|
|
zsh_completion.install "completions/zsh"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "git", "init", "project"
|
|
|
|
system "#{bin}/gws", "init"
|
|
|
|
output = shell_output("#{bin}/gws status")
|
|
|
|
assert_equal "project:\n Clean [Local only repository]\n", output
|
|
|
|
end
|
|
|
|
end
|