bzr-upload 1.1.0 (new formula)

Closes Homebrew/homebrew#49205.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Fred McCann 2016-02-15 17:57:31 -05:00 committed by Dominyk Tiller
parent 8753c8c85d
commit 289f7b655c

31
Formula/bzr-upload.rb Normal file
View file

@ -0,0 +1,31 @@
class BzrUpload < Formula
desc "Bazaar plugin to incrementally upload changes to a dumb server"
homepage "https://launchpad.net/bzr-upload"
url "https://launchpad.net/bzr-upload/1.1/1.1.0/+download/bzr-upload-1.1.0.tar.gz"
sha256 "a48fc56d83114d9ab946cc358a5b33cb05e134787be135eb0a499317d6dec7fc"
bottle :unneeded
depends_on "bazaar"
def install
(share/"bazaar/plugins/upload").install Dir["*"]
end
test do
mkdir "destination"
system "bzr", "whoami", "Homebrew"
system "bzr", "init", "project"
cd "project" do
touch "readme.txt"
system "bzr", "add"
system "bzr", "commit", "-m", "initial import"
system "bzr", "upload", "../destination"
end
assert_match("readme.txt", shell_output("ls -la destination"))
assert_match("bzr-upload.revid", shell_output("ls -la destination"))
end
end