homebrew-core/Formula/dropbox-uploader.rb

24 lines
639 B
Ruby
Raw Normal View History

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"
2016-03-03 13:26:55 +00:00
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