From e90a5de76df8d3eb8b126b8033371bbc5ede9c24 Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Thu, 26 Jul 2018 13:12:07 +1000 Subject: [PATCH] add riff homebrew tap --- riff.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 riff.rb diff --git a/riff.rb b/riff.rb new file mode 100644 index 0000000..a0a6b5a --- /dev/null +++ b/riff.rb @@ -0,0 +1,27 @@ +require "FileUtils" + +class Riff < Formula + homepage "https://github.com/projectriff/riff" + + v = "v0.1.0" # CI Managed + url "https://github.com/projectriff/riff/releases/download/#{v}/riff-darwin-amd64.tgz" + version v + sha256 "565b45b25650691cfd7219915b6e30ebe69c1b801b154d93c034e503857c0e45" # CI Managed + + def gunzip(filename) + command = "gunzip --force #{filename}" + success = system(command) + + success && $?.exitstatus == 0 + end + + def install + # FileUtils.mv("riff-darwin-amd64", "riff") + bin.install "riff" + end + + test do + system "#{bin}/riff", "version" + end +end +