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 bedrock cli homebrew formula #1

Merged
merged 2 commits into from
May 28, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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