homebrew-core/Formula/gws.rb

24 lines
663 B
Ruby
Raw Normal View History

class Gws < Formula
homepage "https://streakycobra.github.io/gws/"
desc "Manage workspaces composed of git repositories"
url "https://github.com/StreakyCobra/gws/archive/0.1.7.tar.gz"
sha256 "36c25392f5cb93a39441a1973842249a62b605a2a7e369a040c78450683697d0"
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