Skip to content

Commit d7fd0d4

Browse files
Merge pull request #103 from wanddynosios/feat/add-enable-space-ssh-command
Feat/add allow space ssh command
2 parents f5d49c5 + 05312e6 commit d7fd0d4

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,3 +1300,28 @@ Change or view the instance count, disk space limit, and memory limit for an app
13001300
disk_quota: 1G
13011301
memory: 2G
13021302
```
1303+
#### allow-space-ssh
1304+
1305+
Allow space ssh in the targeted space
1306+
- `space`: _Optional._ The targeted space (required if not set in the source config)
1307+
1308+
```yml
1309+
- put: cf-allow-space-ssh
1310+
resource: cf-env
1311+
params:
1312+
command: allow-space-ssh
1313+
space: myspace
1314+
```
1315+
1316+
#### disallow-space-ssh
1317+
1318+
Disallow space ssh in the targeted space
1319+
- `space`: _Optional._ The targeted space (required if not set in the source config)
1320+
1321+
```yml
1322+
- put: cf-disallow-space-ssh
1323+
resource: cf-env
1324+
params:
1325+
command: disallow-space-ssh
1326+
space: myspace
1327+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
space=$(get_option '.space')
3+
4+
logger::info "Executing $(logger::highlight "$command"): $space"
5+
6+
cf::target "$org" "$space"
7+
cf::cf allow-space-ssh "$space"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
space=$(get_option '.space')
3+
4+
logger::info "Executing $(logger::highlight "$command"): $space"
5+
6+
cf::target "$org" "$space"
7+
cf::cf disallow-space-ssh "$space"

0 commit comments

Comments
 (0)