Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add homebrew formula #64

Merged
merged 1 commit into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Formula/k2tf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class K2tf < Formula
desc "Kubernetes YAML to Terraform HCL converter"
homepage "https://github.com/sl1pm4t/k2tf"
url "https://github.com/sl1pm4t/k2tf/archive/v0.4.0.tar.gz"
sha256 "d6070de2afc7bacf8a6ead24ad81b7d94f16e5106941ac78ced9b795ff4f8403"
head "https://github.com/sl1pm4t/k2tf.git"

bottle :unneeded

depends_on "go" => :build

def install
system "go", "build"
bin.install "k2tf"
end

test do
system "#{bin}/k2tf", "-v"
end
end
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Download Binary from GitHub [releases](https://github.com/sl1pm4t/k2tf/releases/

_See below_

**Homebrew**

```
$ brew tap sl1pm4t/k2tf https://github.com/sl1pm4t/k2tf.git
$ brew install k2tf
```


## Example Usage

**Convert a single YAML file and write generated Terraform config to Stdout**
Expand Down