iron-functions 0.2.68 (new formula)
Closes #17908. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
2692b181be
commit
ec6c6c29b2
1 changed files with 29 additions and 0 deletions
29
Formula/iron-functions.rb
Normal file
29
Formula/iron-functions.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
class IronFunctions < Formula
|
||||
desc "Go version of the IronFunctions command-line tools"
|
||||
homepage "https://github.com/iron-io/functions"
|
||||
url "https://github.com/iron-io/functions/archive/0.2.68.tar.gz"
|
||||
sha256 "81700463d0ded0966cc69261112eba9d479c31dbd4006e38243ef8f818a70f69"
|
||||
|
||||
depends_on "dep" => :build
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
dir = buildpath/"src/github.com/iron-io/functions"
|
||||
dir.install Dir["*"]
|
||||
cd dir/"fn" do
|
||||
system "make", "dep"
|
||||
system "go", "build", "-o", bin/"fn"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
expected = <<-EOS.undent
|
||||
runtime: go
|
||||
func.yaml created.
|
||||
EOS
|
||||
output = shell_output("#{bin}/fn init --runtime go user/some 2>&1")
|
||||
assert_equal expected, output
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue