dpl 1.8.7.travis.1144.4 → 1.8.7.travis.1145.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjI5M2EyOGYyMzRmZGFhMzdiNWUwN2IyYWM3ZDFkNDY3MWU1YmI4Ng==
4
+ MjAwYTVlNDQzNTI0MjI3ZWFhNGQzNTUyNDMyZmJkZTk2NWQ1ZDg1MA==
5
5
  data.tar.gz: !binary |-
6
- YWM4MmVkMWExZTliNjdkMWRmZDBlM2EzNGQ2ZTNkMDI3NGZlMmExYQ==
6
+ ZTE4YjJkZjJkZmE4NzQwMTA3Y2U3YTdkZWRlNmQ5YzQ2Y2Q5ZTAxNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjdkMjc4ZTVhNjczY2U2NjZlMmI4NTMxZDdiMWJjZDI4NzQ2OTMwZGFmYTI5
10
- Y2YzYTM0YjliYWE5ZWMwNDQ2MDRmMTM0ZTEyNDU1ODJkOWFmNTA2ZDIwY2Q3
11
- MjI0MmE2YWNkNDQ2MDVkZTUzMzAxNTRkYzcxZWI2MjA0YzAxYzQ=
9
+ MGM5NmU2NzNkZjRjYzhmZmY3ZjExZmMyY2UwMTJlZTUyNjRjMjg4MDhhNzgx
10
+ Mjg4MTIyN2RiYmE3ZDI5NTMxOThmNjM1MmZjMjdjNTQxZDJkNWFmNmM2N2E5
11
+ ZmQ5Mzg0OWRjNGUyNzQ1Zjg0ODlhOTdiMGExM2MyM2Q5Zjk2Zjg=
12
12
  data.tar.gz: !binary |-
13
- MDYyNWQ3N2M5M2M1MzBhMjQwMzY2NTQ2NTAwNGYwNzYxZjdiYzZiZjEyM2Uz
14
- Y2M0Zjc5Mzk1NDQxYzczNGQ2NzFmZmEzNjVhMmQ4N2UwNDA5Nzc1ZTViNzYy
15
- MTRmZjFlOWZjNzE4MjgwOGZmYjdlMzFjMmRkMWNlMTBkZTZkYjA=
13
+ NDUxNTNlY2Q3ZGY4ZjY2YWY4MTFiYTc1MDQxYmFkMzRjODhhMTQ4OWU1MDJj
14
+ OTI5MGNlZmRkMGU1NTIxOTg1MjUzMTViMjNhZGE0Y2IwYTUyYjVmNTEwOWU1
15
+ NTVjZjA2YzQwZGM1ZmVmOGRkZTgzNDQwYzg4NjFhNGViODUxZjI=
data/README.md CHANGED
@@ -775,6 +775,7 @@ Deployment will be marked a failure if the script exits with nonzero status.
775
775
 
776
776
  Deploys to Google App Engine and Google App Engine Managed VMs via the Google Cloud SDK and
777
777
  it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Account](https://developers.google.com/console/help/new/#serviceaccounts).
778
+ In order to use this provider, please make sure you have the [App Engine Admin API](https://developers.google.com/apis-explorer/#p/appengine/v1beta4/) enabled [in the Google Developers Console](https://console.developers.google.com/project/_/apiui/apiview/appengine/overview).
778
779
 
779
780
  #### Options:
780
781
 
@@ -782,9 +783,10 @@ it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Acco
782
783
  * **keyfile**: Path to the JSON file containing your [Service Account](https://developers.google.com/console/help/new/#serviceaccounts) credentials in [JSON Web Token](https://tools.ietf.org/html/rfc7519) format. To be obtained via the [Google Developers Console](https://console.developers.google.com/project/_/apiui/credential). Defaults to `"service-account.json"`. Note that this file should be handled with care as it contains authorization keys.
783
784
  * **config**: Path to your module configuration file. Defaults to `"app.yaml"`. This file is runtime dependent ([Go](https://cloud.google.com/appengine/docs/go/config/appconfig), [Java](https://cloud.google.com/appengine/docs/java/configyaml/appconfig_yaml), [PHP](https://developers.google.com/console/help/new/#projectnumber), [Python](https://cloud.google.com/appengine/docs/python/config/appconfig))
784
785
  * **version**: The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you. See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
785
- * **default**: Flag to set the deployed version to be the default serving version. See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
786
+ * **no_promote**: Flag to not promote the deployed version. See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
786
787
  * **verbosity**: Let's you adjust the verbosity when invoking `"gcloud"`. Defaults to `"warning"`. See [`gcloud`](https://cloud.google.com/sdk/gcloud/reference/).
787
788
  * **docker_build**: If deploying a Managed VM, specifies where to build your image. Typical values are `"remote"` to build on Google Cloud Engine and `"local"` which requires Docker to be set up properly (to utilize this on Travis CI, read [Using Docker on Travis CI](http://blog.travis-ci.com/2015-08-19-using-docker-on-travis-ci/)). Defaults to `"remote"`.
789
+ * **no_stop_previous_version**: Flag to prevent your deployment from stopping the previously promoted version. This is from the future, so might not work (yet). See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
788
790
 
789
791
  #### Environment variables:
790
792
 
@@ -793,4 +795,4 @@ it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Acco
793
795
 
794
796
  #### Example:
795
797
 
796
- dpl --provider=gae --project=example --default=true
798
+ dpl --provider=gae --project=example --no_promote=true
@@ -54,8 +54,8 @@ module DPL
54
54
  options[:config] || 'app.yaml'
55
55
  end
56
56
 
57
- def default
58
- options[:default]
57
+ def no_promote
58
+ options[:no_promote]
59
59
  end
60
60
 
61
61
  def verbosity
@@ -66,6 +66,10 @@ module DPL
66
66
  options[:docker_build] || 'remote'
67
67
  end
68
68
 
69
+ def no_stop_previous_version
70
+ options[:no_stop_previous_version]
71
+ end
72
+
69
73
  def push_app
70
74
  command = GCLOUD
71
75
  command << ' --quiet'
@@ -74,7 +78,8 @@ module DPL
74
78
  command << " preview app deploy \"#{config}\""
75
79
  command << " --version \"#{version}\""
76
80
  command << " --docker-build \"#{docker_build}\""
77
- command << (default ? ' --set-default' : '')
81
+ command << " --#{no_promote ? 'no-' : ''}promote"
82
+ command << (no_stop_previous_version ? '--no-stop-previous-version' : '')
78
83
  unless context.shell(command)
79
84
  error 'Deployment failed.'
80
85
  end
@@ -8,7 +8,7 @@ describe DPL::Provider::GAE do
8
8
 
9
9
  describe '#push_app' do
10
10
  example 'with defaults' do
11
- expect(provider.context).to receive(:shell).with("#{DPL::Provider::GAE::GCLOUD} --quiet --verbosity \"warning\" --project \"test\" preview app deploy \"app.yaml\" --version \"\" --docker-build \"remote\"").and_return(true)
11
+ expect(provider.context).to receive(:shell).with("#{DPL::Provider::GAE::GCLOUD} --quiet --verbosity \"warning\" --project \"test\" preview app deploy \"app.yaml\" --version \"\" --docker-build \"remote\" --promote").and_return(true)
12
12
  provider.push_app
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.7.travis.1144.4
4
+ version: 1.8.7.travis.1145.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase