class Goad < Formula
  desc "An AWS Lambda powered, highly distributed, load testing tool built in Go."
  homepage "https://goad.io/"
  url "https://github.com/goadapp/goad.git"
  version "1.3.0"

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    ENV["GOBIN"] = buildpath/"bin"
    ENV.prepend_create_path "PATH", buildpath/"bin"

    (buildpath/"src/github.com/goadapp/goad").install buildpath.children
    cd "src/github.com/goadapp/goad/" do
      system "make", "build"
      bin.install "build/goad"
    end
  end

  test do
    system "#{bin}/goad", "--version"
  end
end

Add homebrew recipe to submit to hombrew-core
Add homebrew recipe to submit to hombrew-core

This creates a working draft homebrew recipe.
After merging the changed build process this recipe
can be adapted to use a tagged version within the offical
goad repository and submitted to the homebrew-core
repository.
