diff --git a/riff.rb b/riff.rb new file mode 100644 index 0000000..a36a6b2 --- /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 "58d522f32e79c509f4b42edb7d0e80ef0bade5592520df06b93c8f91731e780a" # 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 +