Skip to content

Commit 3aaf764

Browse files
author
Gabriel Monroy
committed
fix(cmd): add explicit platform target
1 parent 4b9f157 commit 3aaf764

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ $ export DEISCTL_TUNNEL=172.17.8.100
4848

4949
## Provision a Deis Platform
5050

51-
The `deisctl install` command will schedule and activate all of the Deis platform units.
51+
The `deisctl install platform` command will schedule and activate all of the Deis platform units.
5252

5353
```console
54-
$ deisctl install
54+
$ deisctl install platform
5555

5656
Scheduling data containers...
5757
deis-database-data.service: loaded
@@ -91,7 +91,7 @@ You can scale components with `deisctl scale router=3`, for example.
9191
You can also use the `deisctl uninstall` command to destroy platform units:
9292

9393
```console
94-
$ deisctl uninstall
94+
$ deisctl uninstall platform
9595

9696
Destroying service containers...
9797
deis-database@1.service: inactive

cmd/cmd.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ func Journal(c client.Client, targets []string) error {
9696
}
9797

9898
func Install(c client.Client, targets []string) error {
99-
// if targets, install all services
100-
if len(targets) == 0 {
99+
// if target is platform, install all services
100+
if len(targets) == 1 && targets[0] == "platform" {
101101
err := installDataContainers(c)
102102
if err != nil {
103103
return err
@@ -185,8 +185,8 @@ func installDefaultServices(c client.Client) error {
185185
}
186186

187187
func Uninstall(c client.Client, targets []string) error {
188-
// if no targets, uninstall all services
189-
if len(targets) == 0 {
188+
// if target is platform, uninstall all services
189+
if len(targets) == 1 && targets[0] == "platform" {
190190
err := uninstallAllServices(c)
191191
if err != nil {
192192
return err

deisctl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Usage:
4545
4646
Example Commands:
4747
48-
deisctl install
49-
deisctl uninstall
48+
deisctl install platform
49+
deisctl uninstall builder@1
5050
deisctl list
5151
deisctl scale router=2
5252
deisctl start router@2

systemd/deis-update.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=fleet.service
66
[Service]
77
EnvironmentFile=/etc/environment
88
Environment="DEISCTL_GROUP_ID=2e87b742-68c9-4d08-8f37-5cb7bb2c9d3a"
9-
ExecStart=/opt/bin/deisctl update
9+
ExecStart=/opt/bin/deisctl update platform
1010

1111
[Install]
1212
WantedBy=multi-user.target

0 commit comments

Comments
 (0)