Skip to content

Commit b2810f5

Browse files
committed
Cleanup Bosh Formulae
- bosh-init is dead. Long live bosh create-env! - bosh2 is dead. Long live bosh!
1 parent b9e711a commit b2810f5

File tree

4 files changed

+22
-85
lines changed

4 files changed

+22
-85
lines changed

bosh-init.rb

-21
This file was deleted.

bosh2.rb bosh.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "FileUtils"
22

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

66
v = "v5.1.2" # CI Managed
@@ -11,11 +11,11 @@ class Bosh2 < Formula
1111
sha256 "" # CI Managed
1212

1313
def install
14-
FileUtils.mv("bosh-cli-#{@@verNum}-darwin-amd64", "bosh2")
15-
bin.install "bosh2"
14+
FileUtils.mv("bosh-cli-#{@@verNum}-darwin-amd64", "bosh")
15+
bin.install "bosh"
1616
end
1717

1818
test do
19-
system "#{bin}/bosh2", "--version"
19+
system "#{bin}/bosh", "--version"
2020
end
2121
end

ci/pipeline.yml

+9-51
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ groups:
5252
- gotcha-debian
5353
- genesis-homebrew
5454
- genesis-debian
55-
- bosh2-homebrew
55+
- bosh-homebrew
5656
- bosh-cli-debian
57-
- bosh-init-homebrew
5857
- credhub-cli-debian
5958
- uaa-cli-homebrew
6059
- uaa-cli-debian
@@ -84,10 +83,9 @@ groups:
8483
- kafka-service-broker-homebrew
8584
- gotcha-homebrew
8685
- genesis-homebrew
87-
- bosh2-homebrew
86+
- bosh-homebrew
8887
- uaa-cli-homebrew
8988
- riff-homebrew
90-
- bosh-init-homebrew
9189
- govc-homebrew
9290
- name: debian
9391
jobs:
@@ -690,7 +688,7 @@ jobs:
690688
REPO_ROOT: homebrew
691689
REPO_OUT: pushme
692690
IN_BINARY: "bosh-cli-*-linux-amd64"
693-
OUT_BINARY: bosh bosh2
691+
OUT_BINARY: bosh bosh
694692
NAME: bosh-cli
695693
LICENSE: Apache2
696694
DESCRIPTION: Interact with BOSH director
@@ -704,30 +702,30 @@ jobs:
704702
GPG_PUBLIC_KEY: (( grab meta.gpg.public_key ))
705703
GPG_PRIVATE_KEY: (( grab meta.gpg.private_key ))
706704

707-
- name: bosh2-homebrew
705+
- name: bosh-homebrew
708706
public: true
709707
serial: true
710708
plan:
711709
- aggregate:
712710
- get: homebrew
713711
resource: homebrew
714-
- get: bosh2
715-
resource: bosh2
712+
- get: bosh
713+
resource: bosh
716714
trigger: true
717715
- task: update-homebrew
718716
config:
719717
platform: linux
720718
image_resource: (( grab meta.image ))
721719
inputs:
722720
- name: homebrew
723-
- name: bosh2
721+
- name: bosh
724722
path: recipe
725723
outputs:
726724
- name: pushme
727725
run:
728726
path: "homebrew/ci/scripts/update-homebrew.sh"
729727
args:
730-
- bosh2.rb
728+
- bosh.rb
731729
params:
732730
REPO_ROOT: homebrew
733731
REPO_OUT: pushme
@@ -737,39 +735,6 @@ jobs:
737735
repository: pushme/homebrew
738736
rebase: true
739737

740-
- name: bosh-init-homebrew
741-
public: true
742-
serial: true
743-
plan:
744-
- aggregate:
745-
- get: homebrew
746-
resource: homebrew
747-
- get: bosh-init
748-
resource: bosh-init
749-
trigger: true
750-
- task: update-homebrew
751-
config:
752-
platform: linux
753-
image_resource: (( grab meta.image ))
754-
inputs:
755-
- name: homebrew
756-
- name: bosh-init
757-
path: recipe
758-
outputs:
759-
- name: pushme
760-
run:
761-
path: "homebrew/ci/scripts/update-homebrew.sh"
762-
args:
763-
- bosh-init.rb
764-
params:
765-
REPO_ROOT: homebrew
766-
REPO_OUT: pushme
767-
BINARY: "bosh-init-*-darwin-amd64"
768-
- put: homebrew
769-
params:
770-
repository: pushme/homebrew
771-
rebase: true
772-
773738
- name: credhub-cli-debian
774739
public: true
775740
serial_groups: [apt]
@@ -1697,7 +1662,7 @@ resources:
16971662
repository: install-debs-in-order
16981663
access_token: (( grab meta.github.access_token ))
16991664

1700-
- name: bosh2
1665+
- name: bosh
17011666
type: github-release
17021667
source:
17031668
user: cloudfoundry
@@ -1710,13 +1675,6 @@ resources:
17101675
bucket: bosh-cli-artifacts
17111676
regexp: bosh-cli-(.*)-linux-amd64
17121677

1713-
- name: bosh-init
1714-
type: github-release
1715-
source:
1716-
user: cloudfoundry
1717-
repository: bosh-init
1718-
access_token: (( grab meta.github.access_token ))
1719-
17201678
- name: credhub-cli
17211679
type: github-release
17221680
source:

ci/settings.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
meta:
33
name: homebrew-recipes
4-
target: sw
4+
target: pipes
55

66
github:
77
owner: starkandwayne
88
repo: homebrew-cf
9-
private_key: (( vault "secret/pipelines/shared/github:private_key" ))
10-
access_token: (( vault "secret/pipelines/shared/github:access_token" ))
9+
private_key: (( vault "secret/pipelines/github/starkandwayne/ci-bot:private" ))
10+
access_token: (( vault "secret/pipelines/github/starkandwayne/ci-bot:access_token" ))
1111

1212
debian:
1313
s3_bucket: apt.starkandwayne.com
14-
aws_access_key: (( vault "secret/pipelines/homebrew/aws:aws_access_key" ))
15-
aws_secret_key: (( vault "secret/pipelines/homebrew/aws:aws_secret_key" ))
14+
aws_access_key: (( vault "secret/pipelines/aws/packaging:access_key" ))
15+
aws_secret_key: (( vault "secret/pipelines/aws/packaging:secret_key" ))
1616

1717
gpg:
18-
id: (( vault "secret/pipelines/homebrew/gpg:id" ))
19-
public_key: (( vault "secret/pipelines/homebrew/gpg:public" ))
20-
private_key: (( vault "secret/pipelines/homebrew/gpg:private" ))
18+
id: (( vault "secret/pipelines/gpg/packaging:id" ))
19+
public_key: (( vault "secret/pipelines/gpg/packaging:public" ))
20+
private_key: (( vault "secret/pipelines/gpg/packaging:private" ))
2121

2222
pivnet:
23-
api-token: (( vault "secret/pipelines/" meta.pipeline "/pivnet:api-token" ))
23+
api-token: (( vault "secret/pipelines/pivnet/starkandwayne:token" ))

0 commit comments

Comments
 (0)