homebrew-core/Formula/dropbox-uploader.rb
ilovezfs ef560dd199 dropbox-uploader 1.0
Closes #4944.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-09-19 20:08:08 -07:00

23 lines
639 B
Ruby

class DropboxUploader < Formula
desc "Bash script for interacting with Dropbox"
homepage "https://www.andreafabrizi.it/?dropbox_uploader"
url "https://github.com/andreafabrizi/Dropbox-Uploader/archive/1.0.tar.gz"
sha256 "8c9be8bd38fb3b0f0b4d1a863132ad38c8299ac62ecfbd1e818addf32b48d84c"
bottle :unneeded
def install
bin.install "dropbox_uploader.sh"
end
test do
(testpath/".dropbox_uploader").write <<-EOS.undent
APPKEY=a
APPSECRET=b
ACCESS_LEVEL=sandbox
OAUTH_ACCESS_TOKEN=c
OAUTH_ACCESS_TOKEN_SECRET=d
EOS
pipe_output("#{bin}/dropbox_uploader.sh unlink", "y\n")
end
end