capistrano-autoscale 1.0.8 → 1.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa25db298d32e210d08f652c69c6a63d5ee8f5ac92be54edee6c90fe557b9110
|
4
|
+
data.tar.gz: fb4f792c88cbb931baa04ef6f2a6f932893004453a5a0464e9e495b3baed341d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cb01ac4f28155d2300598ee27d3bc81ef0ad902a3889954f88102d3ba1f315dcfe9ce68530e4c1ccbe51d772f2472e0660df9e27514e32370428b9640d31cc2
|
7
|
+
data.tar.gz: 56158a941cee184e6ed472939f735ffc7c3a6ef1261c9049a58251a53dfd021d956fef9412b938e0aece12780c0212bd3d5a31ef9aab8864c3434918debc96da
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Capistrano
|
2
2
|
module Autoscale
|
3
3
|
module Aws
|
4
|
-
module
|
4
|
+
module AutoscalingCredentials
|
5
5
|
include Capistrano::DSL
|
6
6
|
|
7
|
-
def
|
7
|
+
def autoscaling_credentials
|
8
8
|
credentials = {
|
9
9
|
access_key_id: fetch(:aws_access_key_id, ENV['AWS_ACCESS_KEY_ID']),
|
10
10
|
secret_access_key: fetch(:aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY'])
|
@@ -5,11 +5,11 @@ module Capistrano
|
|
5
5
|
module Autoscale
|
6
6
|
module Aws
|
7
7
|
module AutoscalingGroup
|
8
|
-
include Capistrano::Autoscale::Aws::
|
8
|
+
include Capistrano::Autoscale::Aws::AutoscalingCredentials
|
9
9
|
include Capistrano::DSL
|
10
10
|
|
11
11
|
def autoscale_groups
|
12
|
-
@autoscale_groups ||= ::Aws::AutoScaling::Client.new(
|
12
|
+
@autoscale_groups ||= ::Aws::AutoScaling::Client.new(autoscaling_credentials).describe_auto_scaling_groups({auto_scaling_group_names: [autoscale_group_names].flatten}).auto_scaling_groups
|
13
13
|
end
|
14
14
|
|
15
15
|
def autoscale_group_names
|
@@ -5,10 +5,10 @@ module Capistrano
|
|
5
5
|
module Autoscale
|
6
6
|
module Aws
|
7
7
|
module EC2
|
8
|
-
include Capistrano::Autoscale::Aws::
|
8
|
+
include Capistrano::Autoscale::Aws::AutoscalingCredentials
|
9
9
|
|
10
10
|
def ec2_client
|
11
|
-
@ec2_client ||= ::Aws::EC2::Client.new(
|
11
|
+
@ec2_client ||= ::Aws::EC2::Client.new(autoscaling_credentials)
|
12
12
|
end
|
13
13
|
|
14
14
|
def ec2_instance(instance_id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-autoscale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien Glancy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,8 +142,8 @@ files:
|
|
142
142
|
- Rakefile
|
143
143
|
- capistrano-autoscale.gemspec
|
144
144
|
- lib/capistrano/autoscale.rb
|
145
|
+
- lib/capistrano/autoscale/aws/autoscaling_credentials.rb
|
145
146
|
- lib/capistrano/autoscale/aws/autoscaling_group.rb
|
146
|
-
- lib/capistrano/autoscale/aws/credentials.rb
|
147
147
|
- lib/capistrano/autoscale/aws/ec2.rb
|
148
148
|
- lib/capistrano/autoscale/version.rb
|
149
149
|
homepage: https://github.com/ClinchIO/capistrano-autoscale
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.7.
|
169
|
+
rubygems_version: 2.7.7
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Capistrano plugin for deploying to AWS AutoScale groups.
|