27 lines
800 B
Ruby
27 lines
800 B
Ruby
class DropboxUploader < Formula
|
|
desc "Bash script for interacting with Dropbox"
|
|
homepage "https://www.andreafabrizi.it/2016/01/01/Dropbox-Uploader/"
|
|
url "https://github.com/andreafabrizi/Dropbox-Uploader/archive/1.0.tar.gz"
|
|
sha256 "8c9be8bd38fb3b0f0b4d1a863132ad38c8299ac62ecfbd1e818addf32b48d84c"
|
|
license "GPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3507a9fb25fad0ae5909e461ea6b63c41d80a0793bce95a210e388e0baafaeae"
|
|
end
|
|
|
|
def install
|
|
bin.install "dropbox_uploader.sh", "dropShell.sh"
|
|
end
|
|
|
|
test do
|
|
(testpath/".dropbox_uploader").write <<~EOS
|
|
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
|