b2-tools 0.4.0 (new formula)
Closes Homebrew/homebrew#48851. Signed-off-by: Alex Dunn <adunn@ucsb.edu>master
parent
55ef8f641d
commit
48e2ecc369
|
@ -0,0 +1,21 @@
|
|||
class B2Tools < Formula
|
||||
desc "B2 Cloud Storage Command-Line Tools"
|
||||
homepage "https://github.com/Backblaze/B2_Command_Line_Tool"
|
||||
url "https://github.com/Backblaze/B2_Command_Line_Tool/archive/v0.4.0.tar.gz"
|
||||
sha256 "0253dfc4352ae6bc23e7184c2402b713f7e6f9a0584c80693ed1fdcffcf61325"
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
||||
system "python", *Language::Python.setup_install_args(libexec)
|
||||
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
|
||||
bash_completion.install "contrib/b2" => "b2-tools-completion.bash"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "bad_auth_token",
|
||||
shell_output("#{bin}/b2 authorize_account BOGUSACCTID BOGUSAPPKEY", 1)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue