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

change bosh2 to bosh #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Current brews offered:
- [safe](https://github.com/starkandwayne/safe)
- [shield](https://github.com/starkandwayne/shield)
- [yaml2json](https://github.com/bronze1man/go-yaml2json)
- [bosh-cli](https://github.com/cloudfoundry/bosh-cli)

```
$ brew install spruce
Expand Down
8 changes: 4 additions & 4 deletions bosh2.rb → bosh.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "FileUtils"

class Bosh2 < Formula
class Bosh < Formula
homepage "https://github.com/cloudfoundry/bosh-cli"

v = "v3.0.1" # CI Managed
Expand All @@ -11,11 +11,11 @@ class Bosh2 < Formula
sha256 "" # CI Managed

def install
FileUtils.mv("bosh-cli-#{@@verNum}-darwin-amd64", "bosh2")
bin.install "bosh2"
FileUtils.mv("bosh-cli-#{@@verNum}-darwin-amd64", "bosh")
bin.install "bosh"
end

test do
system "#{bin}/bosh2", "--version"
system "#{bin}/bosh", "--version"
end
end
18 changes: 9 additions & 9 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ groups:
- gotcha-debian
- genesis-homebrew
- genesis-debian
- bosh2-homebrew
- bosh-homebrew
- bosh-cli-debian
- bosh-init-homebrew
- credhub-cli-debian
Expand All @@ -76,7 +76,7 @@ groups:
- kafka-service-broker-homebrew
- gotcha-homebrew
- genesis-homebrew
- bosh2-homebrew
- bosh-homebrew
- bosh-init-homebrew
- name: debian
jobs:
Expand Down Expand Up @@ -636,7 +636,7 @@ jobs:
REPO_ROOT: homebrew
REPO_OUT: pushme
IN_BINARY: "bosh-cli-*-linux-amd64"
OUT_BINARY: bosh bosh2
OUT_BINARY: bosh
NAME: bosh-cli
LICENSE: Apache2
DESCRIPTION: Interact with BOSH director
Expand All @@ -650,30 +650,30 @@ jobs:
GPG_PUBLIC_KEY: (( grab meta.gpg.public_key ))
GPG_PRIVATE_KEY: (( grab meta.gpg.private_key ))

- name: bosh2-homebrew
- name: bosh-homebrew
public: true
serial: true
plan:
- aggregate:
- get: homebrew
resource: homebrew
- get: bosh2
resource: bosh2
- get: bosh
resource: bosh
trigger: true
- task: update-homebrew
config:
platform: linux
image_resource: (( grab meta.image ))
inputs:
- name: homebrew
- name: bosh2
- name: bosh
path: recipe
outputs:
- name: pushme
run:
path: "homebrew/ci/scripts/update-homebrew.sh"
args:
- bosh2.rb
- bosh.rb
params:
REPO_ROOT: homebrew
REPO_OUT: pushme
Expand Down Expand Up @@ -1370,7 +1370,7 @@ resources:
repository: kafka-service-broker
access_token: (( grab meta.github.access_token ))

- name: bosh2
- name: bosh
type: github-release
source:
user: cloudfoundry
Expand Down