Skip to content

Commit c3b1bee

Browse files
Merge pull request #86 from JHjava/add-support-to-unbind-route-service
Add the ability to use unbind-route-service
2 parents 3d82ddd + dc4da3c commit c3b1bee

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
domain=$(get_option '.domain')
3+
service_instance=$(get_option '.service_instance')
4+
hostname=$(get_option '.hostname')
5+
path=$(get_option '.path')
6+
7+
logger::info "Executing $(logger::highlight "$command"): $service_instance"
8+
9+
cf::target "$org" "$space"
10+
11+
args=("$domain" "$service_instance")
12+
[ -n "$hostname" ] && args+=(--hostname "$hostname")
13+
[ -n "$path" ] && args+=(--path "$path")
14+
15+
cf::cf unbind-route-service "${args[@]}"

0 commit comments

Comments
 (0)