dpl-ops_works 1.9.5.travis.2775.5 → 1.9.5.travis.2781.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dpl/provider/ops_works.rb +13 -0
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61df2a3259addd8fd6c338714918cc3727066d829ddf21b3e9f82a3318b907fd
4
- data.tar.gz: 3c3ee9a451be8572a2deceec863b15a19364ed0da97fa0e12e29e14432319c7b
3
+ metadata.gz: 55e3b03b727bd88f45339e6fd0f44d584223065a21038490fa7ba67682b781fc
4
+ data.tar.gz: f3e29f7bcbf7069670887d6bde3d58749af72680d4b50a84c17e6beb5e4019a8
5
5
  SHA512:
6
- metadata.gz: 79b621dfcedb0389fd8b930f89418cc7af7154445171830415ca1dcadcaf526763db9822a101846539c706a76b6ac4403441d536201a71337b861bfe51be5eaf
7
- data.tar.gz: 464d7612f6c8f225fb10af093b1c4be8b560e7869de0573a9101bfc6cf8f51d347be2daa97340d06efc8e44e1dd41413b908ff57df0feb2780273d5ee8303920
6
+ metadata.gz: c3dd42a2ddaac8ca156706769f0ee882e3e20c8b676c68ea637539b2239043b2c980280e30d9115578fe0ecd96c221d140daf20f3bebeb38d1c6fb3e25ed414f
7
+ data.tar.gz: dfd4b124de4e27d4134454651b087c9a95ed67c886d2670bebd2c21e1e088d991238e42ffc18e5e5363e92fdbc586e91d87b23f6540c0a8c4b56951377fd3f88
@@ -101,11 +101,24 @@ module DPL
101
101
  print "\n"
102
102
  if deployment[:status] == 'successful'
103
103
  log "Deployment successful."
104
+ return unless options[:update_app_on_success]
105
+ update_app
104
106
  else
105
107
  error "Deployment failed."
106
108
  end
107
109
  end
108
110
 
111
+ def update_app
112
+ update_config = {
113
+ app_id: option(:app_id),
114
+ app_source: {
115
+ revision: current_sha,
116
+ }
117
+ }
118
+ opsworks.update_app(update_config)
119
+ log "Application Source branch/revision setting updated."
120
+ end
121
+
109
122
  def wait_until_deployed(deployment_id)
110
123
  deployment = nil
111
124
  loop do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl-ops_works
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5.travis.2775.5
4
+ version: 1.9.5.travis.2781.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dpl
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.5.travis.2775.5
19
+ version: 1.9.5.travis.2781.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.9.5.travis.2775.5
26
+ version: 1.9.5.travis.2781.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk
29
29
  requirement: !ruby/object:Gem::Requirement