Skip to content

Commit

Permalink
add service instances access
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Makowski committed Mar 2, 2016
1 parent 2c08bc2 commit 97b7fdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/make/cloudfoundry.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ yml_appseq = applications
yml_upsseq = user_provided_service_instances
yml_sbkseq = service_brokers
yml_sviseq = service_instances
yml_sviacs = service_accesses
yml_svcseq = services
yml_appdmn = apps_domain
yml_timeout = timeout
Expand Down Expand Up @@ -83,7 +84,9 @@ UPSI := $(shell $(call r_ymllistdo,$(yml_upsseq),|ups| print ups.fetch("name",""
DPLUPSI := $(foreach ups,$(UPSI),$(upsdir)/$(ups)/.ups)
DELUPSI := $(foreach ups,$(UPSI),$(upsdir)/$(ups)/.upsdel)
SVCS := $(sort $(shell $(call r_ymllistdo,$(yml_sviseq),|svc| print svc["service_plan"]["service"]["label"]+" ") <$(appstack_mfst)))
SVCACS := $(shell $(call r_ymllistdo,$(yml_sviacs),|svc| print svc.fetch("name","")+" ") <$(appstack_mfst))
DPLSVCS := $(foreach svc,$(SVCS),$(svcdir)/$(svc)/.svc)
ENBLSVCS := $(foreach svc,$(SVCACS),$(svcdir)/$(svc)/.svc)
DELSVCS := $(foreach svc,$(SVCS),$(svcdir)/$(svc)/.svcdel)
SBKS := $(shell $(call r_ymllistdo,$(yml_sbkseq),|sbk| print sbk.fetch("name","")+" ") <$(appstack_mfst))
DPLSBKS := $(foreach sbk,$(SBKS),$(sbkdir)/$(sbk)/.sbk)
Expand All @@ -94,6 +97,7 @@ ifeq ($(filter $(MAKECMDGOALS),$(MAKEFILE_TARGETS_WITHOUT_INCLUDE)),)
-include $(DPLSVIS:$(svidir)/%/.svi=$(svidir)/%/.svideps)
-include $(DPLUPSI:$(upsdir)/%/.ups=$(upsdir)/%/.upsdeps)
-include $(DPLSVCS:$(svcdir)/%/.svc=$(svcdir)/%/.svcdeps)
-include $(ENBLSVCS:$(svcdir)/%/.svc=$(svcdir)/%/.svcdeps)
-include $(DPLSBKS:$(sbkdir)/%/.sbk=$(sbkdir)/%/.sbkdeps)
endif

Expand All @@ -115,6 +119,8 @@ deploy_user_provided_service_instances: $(DPLUPSI)

deploy_services: $(DPLSVCS)

enable_services: $(ENBLSVCS)

deploy_service_brokers: $(DPLSBKS)

$(artifactspack): $(ARTFCTS)
Expand Down

0 comments on commit 97b7fdb

Please sign in to comment.