Skip to content

Commit

Permalink
Add homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
yuokada committed Apr 18, 2020
1 parent e798926 commit b092df1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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

0 comments on commit b092df1

Please sign in to comment.