From 82433bf62f7cf3dbacf48248904dff609e22701e Mon Sep 17 00:00:00 2001 From: buildmaster Date: Fri, 5 Apr 2019 18:22:19 +0000 Subject: [PATCH] Sync docs from 2.1.x to gh-pages --- 2.1.x/ghpages.sh | 4 +- 2.1.x/index.html | 463 +------------------- 2.1.x/multi/multi__discovery.html | 10 +- 2.1.x/single/spring-cloud-cloudfoundry.html | 10 +- 2.1.x/spring-cloud-cloudfoundry.xml | 2 +- 5 files changed, 28 insertions(+), 461 deletions(-) diff --git a/2.1.x/ghpages.sh b/2.1.x/ghpages.sh index 57c5da3..55e76be 100644 --- a/2.1.x/ghpages.sh +++ b/2.1.x/ghpages.sh @@ -40,7 +40,7 @@ function check_if_anything_to_sync() { function retrieve_current_branch() { # Code getting the name of the current branch. For master we want to publish as we did until now - # http://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch + # https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch # If there is a branch already passed will reuse it - otherwise will try to find it CURRENT_BRANCH=${BRANCH} if [[ -z "${CURRENT_BRANCH}" ]] ; then @@ -147,7 +147,7 @@ function copy_docs_for_current_version() { COMMIT_CHANGES="yes" else echo -e "Current branch is [${CURRENT_BRANCH}]" - # http://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin + # https://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin if [[ ",${WHITELISTED_BRANCHES_VALUE}," = *",${CURRENT_BRANCH},"* ]] ; then mkdir -p ${ROOT_FOLDER}/${CURRENT_BRANCH} echo -e "Branch [${CURRENT_BRANCH}] is whitelisted! Will copy the current docs to the [${CURRENT_BRANCH}] folder" diff --git a/2.1.x/index.html b/2.1.x/index.html index 9ff8559..7e2c384 100644 --- a/2.1.x/index.html +++ b/2.1.x/index.html @@ -5,430 +5,8 @@ -Untitled - - +spring-cloud-cloudfoundry + - + diff --git a/2.1.x/multi/multi__discovery.html b/2.1.x/multi/multi__discovery.html index f1fe601..2de8f68 100644 --- a/2.1.x/multi/multi__discovery.html +++ b/2.1.x/multi/multi__discovery.html @@ -1,15 +1,15 @@ 1. Discovery

1. Discovery

Here’s a Spring Cloud app with Cloud Foundry discovery:

app.groovy.  -

@Grab('org.springframework.cloud:spring-cloud-cloudfoundry')
-@RestController
-@EnableDiscoveryClient
+

@Grab('org.springframework.cloud:spring-cloud-cloudfoundry')
+@RestController
+@EnableDiscoveryClient
 class Application {
 
-  @Autowired
+  @Autowired
   DiscoveryClient client
 
-  @RequestMapping('/')
+  @RequestMapping('/')
   String home() {
     'Hello from ' + client.getLocalServiceInstance()
   }
diff --git a/2.1.x/single/spring-cloud-cloudfoundry.html b/2.1.x/single/spring-cloud-cloudfoundry.html
index b7bf905..55ae494 100644
--- a/2.1.x/single/spring-cloud-cloudfoundry.html
+++ b/2.1.x/single/spring-cloud-cloudfoundry.html
@@ -16,15 +16,15 @@ implementation of Spring Cloud Commons DiscoveryClientspring.cloud.cloudfoundry.discovery.[username,password] (also *.url if you are not connecting to Pivotal Web Services) and then you
 can use the DiscoveryClient directly or via a LoadBalancerClient.

The first time you use it the discovery client might be slow owing to the fact that it has to get an access token from Cloud Foundry.

1. Discovery

Here’s a Spring Cloud app with Cloud Foundry discovery:

app.groovy.  -

@Grab('org.springframework.cloud:spring-cloud-cloudfoundry')
-@RestController
-@EnableDiscoveryClient
+

@Grab('org.springframework.cloud:spring-cloud-cloudfoundry')
+@RestController
+@EnableDiscoveryClient
 class Application {
 
-  @Autowired
+  @Autowired
   DiscoveryClient client
 
-  @RequestMapping('/')
+  @RequestMapping('/')
   String home() {
     'Hello from ' + client.getLocalServiceInstance()
   }
diff --git a/2.1.x/spring-cloud-cloudfoundry.xml b/2.1.x/spring-cloud-cloudfoundry.xml
index a5b46bb..6d021cd 100644
--- a/2.1.x/spring-cloud-cloudfoundry.xml
+++ b/2.1.x/spring-cloud-cloudfoundry.xml
@@ -4,7 +4,7 @@
 
 
 Spring Cloud for Cloud Foundry
-2019-04-01
+2019-04-05