From 247eb83233976fb98bcaa4829c01bba5636f51d9 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Wed, 2 Mar 2016 09:51:43 +1100 Subject: [PATCH] dropbox-uploader 0.16 (new formula) dropbox_uploader is a bash script for interacting with Dropbox Closes #49703. Signed-off-by: Dominyk Tiller --- Library/Formula/dropbox-uploader.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Library/Formula/dropbox-uploader.rb diff --git a/Library/Formula/dropbox-uploader.rb b/Library/Formula/dropbox-uploader.rb new file mode 100644 index 000000000000..54b41becb35e --- /dev/null +++ b/Library/Formula/dropbox-uploader.rb @@ -0,0 +1,21 @@ +class DropboxUploader < Formula + desc "Bash script for interacting with Dropbox" + homepage "http://www.andreafabrizi.it/?dropbox_uploader" + url "https://github.com/andreafabrizi/Dropbox-Uploader/archive/0.16.tar.gz" + sha256 "738aebdb57f75e9033cb9bb319b14fe1c3b471f951180acb48631e9810ebf1c3" + + 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