Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1300,3 +1300,28 @@ Change or view the instance count, disk space limit, and memory limit for an app
disk_quota: 1G
memory: 2G
```
#### allow-space-ssh

Allow space ssh in the targeted space
- `space`: _Optional._ The targeted space (required if not set in the source config)

```yml
- put: cf-allow-space-ssh
resource: cf-env
params:
command: allow-space-ssh
space: myspace
```

#### disallow-space-ssh

Disallow space ssh in the targeted space
- `space`: _Optional._ The targeted space (required if not set in the source config)

```yml
- put: cf-disallow-space-ssh
resource: cf-env
params:
command: disallow-space-ssh
space: myspace
```
7 changes: 7 additions & 0 deletions resource/commands/allow-space-ssh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

space=$(get_option '.space')

logger::info "Executing $(logger::highlight "$command"): $space"

cf::target "$org" "$space"
cf::cf allow-space-ssh "$space"
7 changes: 7 additions & 0 deletions resource/commands/disallow-space-ssh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

space=$(get_option '.space')

logger::info "Executing $(logger::highlight "$command"): $space"

cf::target "$org" "$space"
cf::cf disallow-space-ssh "$space"