Skip to content

Commit

Permalink
add riff homebrew tap
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Jul 26, 2018
1 parent 6619404 commit e90a5de
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions riff.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e90a5de

Please sign in to comment.