Skip to content

Commit

Permalink
DPNG-3812 Added parameters to specify application-broker service name…
Browse files Browse the repository at this point in the history
… and icon
  • Loading branch information
Szymon Bultrowicz committed Dec 8, 2015
1 parent 740444f commit b9514b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/make/cloudfoundry.mk
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ $(appdir)/%/.app:
$(eval domain:=$(shell $(call r_ymlelemval,$(yml_appdmn)) <$(appstack_file)))
$(eval app_name:=$(subst $(appdir)/,,$(@D)))
$(eval desc:=$(shell $(call r_appgetattr,$(app_name),.fetch("env",{}).fetch("description","")) <$(@D)/$(applcl_mfst)))
$(eval disp_name:=$(shell $(call r_appgetattr,$(app_name),.fetch("env",{}).fetch("display_name","")) <$(@D)/$(applcl_mfst)))
$(eval image_url:=$(shell $(call r_appgetattr,$(app_name),.fetch("env",{}).fetch("image_url","")) <$(@D)/$(applcl_mfst)))
$(eval register_in:=$(shell $(call r_appgetattr,$(app_name),.fetch("env",{}).fetch("register_in","")) <$(@D)/$(applcl_mfst)))
$(eval auth_username:=$(shell $(call r_appgetattr,$(register_in),.fetch("env",{}).fetch("AUTH_USER","")) <$(appdir)/$(register_in)/$(applcl_mfst)))
$(eval auth_password:=$(shell $(call r_appgetattr,$(register_in),.fetch("env",{}).fetch("AUTH_PASS","")) <$(appdir)/$(register_in)/$(applcl_mfst)))
$(shmute)if [ ! -z "$(register_in)" ]; then $(appdir)/$(register_in)/register.sh "http://$(register_in).$(domain)" "$(auth_username)" "$(auth_password)" "$(app_name)" "$(app_name)" "$(desc)"; fi
$(shmute)if [ ! -z "$(register_in)" ]; then $(appdir)/$(register_in)/register.sh -b "http://$(register_in).$(domain)" -u "$(auth_username)" -p "$(auth_password)" -a "$(app_name)" -n "$(app_name)" -s "$(disp_name)" -d "$(desc)" -i "$(image_url)"; fi
$(shmute)rm -f $|
$(shmute)touch $@

Expand Down

0 comments on commit b9514b3

Please sign in to comment.