Skip to content

Commit

Permalink
Merge pull request #1 from microsoft/edaena-bedrockcli
Browse files Browse the repository at this point in the history
Add bedrock cli homebrew formula
  • Loading branch information
edaena committed May 28, 2020
2 parents bd028b1 + 7bf246c commit 001ff59
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Formula/bedrock-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class BedrockCli < Formula
desc "The CLI for Bedrock"
homepage "https://microsoft.github.io/bedrock-cli/commands/"
url "https://github.com/microsoft/bedrock-cli/releases/download/v0.6.5/dist.tar.gz", :using => :curl
sha256 "32432b2a3ab1d984c67ed2330e37a7c6da7d6d8c09e5d09c434032cebdd4b058"

depends_on "terraform"
depends_on "helm" => "2.16.3"
depends_on "azure-cli"
depends_on "kubectl"

def install
if OS.mac?
mv "./bedrock-macos", "./bedrock"
elsif OS.linux?
mv "./bedrock-linux", "./bedrock"
end
bin.install "./bedrock"
end

test do
# Run the test with `brew test bedrock-cli`.
system "#{bin}/bedrock", "project", "init"
assert File.file?("bedrock.yaml")
end
end
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# Homebrew Bedrock Formulae
This repository contains [Homebrew](https://brew.sh/) formulae for:
- [bedrock-cli](https://github.com/microsoft/bedrock-cli)

Tap to the formulae repository:
```
$ brew tap microsoft/bedrock
```

## Install Bedrock CLI

```
$ brew install microsoft/bedrock/bedrock-cli
```

Test the formula:
```
$ brew test microsoft/bedrock/bedrock-cli
```

Run `bedrock-cli`:
```
$ bedrock
```

## Upgrade Bedrock CLI
If you already have the Bedrock CLI installed, you can upgrade to the latest version as follows:
```
$ brew upgrade microsoft/bedrock/bedrock-cli
```

## Uninstall Bedrock CLI
To uninstall the Bedrock CLI run:
```
$ brew uninstall microsoft/bedrock/bedrock-cli
```

If you also want to unsubscribe to the `microsoft/bedrock` tap, run:
```
$ brew untap microsoft/bedrock
```



# Contributing

Expand Down

0 comments on commit 001ff59

Please sign in to comment.