capistrano-asg 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 640eab457e1530da23b85b9eb0f16b9fe53116c9
4
- data.tar.gz: 34a6538f0c47571d89ba43a7853b5ca6e5d22b13
3
+ metadata.gz: 60b3f52a6e46ac7cc217c8fc3b7396b34da643fe
4
+ data.tar.gz: 9aced17c55aeeb3478eb55e6fe50d346e9b2d1d1
5
5
  SHA512:
6
- metadata.gz: 22e1da471c952d26792769cbd305fc5adb3a9b971d44a173abeea702a72cef9b0cf434915bec7ebeb47c65d91e22c440e1cff47273a9e6552ffd3a32086e0170
7
- data.tar.gz: 277b16a70df699773e1c423a22180d38c4050bdff2da7b201fc3d36abd1f97bf5d5fea7c3130bdbfb17955f9b3ffb04d4139aa66c0a76f321f9ebde44abdb68e
6
+ metadata.gz: 7d945f49690a732a8e463cd0bc7ee72aaf21cc517161c34352848e679536c5f432eaa0f62478fcb3cbc25a4a268d35c782b9ff4ec28acc8c49dfa8947ac52283
7
+ data.tar.gz: ca14d6a25ad6b59ebe4dc4a7414b52d335eef428d97ceb3dc1a3989dc984474023327dc1c7da6ee917b866f26d025bbb053e231bb5c759fe2f11668f493478e0
@@ -5,12 +5,14 @@ namespace :asg do
5
5
  set :aws_access_key_id, fetch(:aws_access_key_id, ENV['AWS_ACCESS_KEY_ID'])
6
6
  set :aws_secret_access_key, fetch(:aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY'])
7
7
  asg_launch_config = {}
8
+ asg_ami_id = {}
8
9
 
9
10
  # Iterate over relevant regions
10
11
  regions = fetch(:regions)
11
12
  regions.keys.each do |region|
12
13
  set :aws_region, region
13
14
  asg_launch_config[region] = {}
15
+ asg_ami_id[region] = {}
14
16
 
15
17
  # Iterate over relevant ASGs
16
18
  regions[region].each do |asg|
@@ -20,6 +22,7 @@ namespace :asg do
20
22
  Capistrano::Asg::LaunchConfiguration.create(ami) do |lc|
21
23
  puts "Autoscaling: Created Launch Configuration: #{lc.aws_counterpart.name} from region #{region} in ASG #{asg}"
22
24
  asg_launch_config[region][asg] = lc.aws_counterpart.name
25
+ asg_ami_id[region][asg] = ami.aws_counterpart.id
23
26
  lc.attach_to_autoscale_group!
24
27
  end
25
28
  end
@@ -27,5 +30,6 @@ namespace :asg do
27
30
  end
28
31
 
29
32
  set :asg_launch_config, asg_launch_config
33
+ set :asg_ami_id, asg_ami_id
30
34
  end
31
35
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module Asg
5
- VERSION = '0.5.2'
5
+ VERSION = '0.5.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-asg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-02 00:00:00.000000000 Z
13
+ date: 2017-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.6.11
183
+ rubygems_version: 2.5.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Capistrano plugin for deploying to AWS AutoScale Groups.