Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 923 Bytes
require 'fileutils'
class SecretSender < Formula
desc 'SecretSender is a little utility to securely share secrets to other users.'
homepage 'https://github.com/Shopify/secret-sender'
url 'https://github.com/Shopify/secret-sender/archive/v2.0.0.tar.gz'
sha256 '282a90308b401f99f21885a34f9b5859ee90e9863ef2e87b4f522e57c9e53be6'
depends_on 'go' => :build
bottle do
root_url "https://github.com/Shopify/secret-sender/releases/download/v2.0.0"
cellar :any_skip_relocation
rebuild 1
sha256 "54e2bd8d55fefdb813168c300e79751353eddde775671471980966960b58d342" => :mojave
end
def install
FileUtils.mkdir_p('src/github.com/Shopify')
FileUtils.ln_sf(Dir.pwd, 'src/github.com/Shopify/secret-sender')
ENV['GOPATH'] = Dir.pwd
system('go', 'build', '-o', 'secret-sender', 'github.com/Shopify/secret-sender')
bin.install('secret-sender')
man1.install('secret-sender.1')
end
end
You can’t perform that action at this time.