capistrano-autoscale 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66dbdddc5f472e46ef3ab9f3a2174b7a4414a1830bfb3f142f951b1b8cd4a53a
4
- data.tar.gz: 657db1fd2099a8e1e8c0055d1287f2416b44a67107c3c2d895b9e1cf22dc0667
3
+ metadata.gz: 23294e78d578f0a3fcbc199682e6fa14762e5296853b3e2e85986d5eac372128
4
+ data.tar.gz: 943a1f7784439f5708b7b3e826d239fb7e68e8127e429aa4ade93de163f4d9f8
5
5
  SHA512:
6
- metadata.gz: 8008df5e26d7667b84f099f705049181bfe14f35c674d90760bd3731976de2f0bc463d8cbe80dd2eaf291c2d5c6de80113c5d283f7df25c970f17397946a07a5
7
- data.tar.gz: cf66a57edb910fe73c530c04587929c62df154cebeb06ddd53fa3c3147cc381b4bd730585fd212e1c922995cf10c707cc4d17b5417c841634716ecfc2821b479
6
+ metadata.gz: 9e8357c520be9102bbe001efb1bea41c4bef65c5b369f95041dd200421a2264e5d603d3ae8ff40bd9fe69d3d6aaf556ae614f69e47a4460107a4b32ab5e34acd
7
+ data.tar.gz: 9d9836e3731a549bf655caba6ee9d6d4de5ddc576048613a47b84654cc1e7f6b35db57e342bc9b37a91d628af13a609ded92d9f4a2876e14467df6e1e77deb18
data/README.md CHANGED
@@ -15,11 +15,12 @@ Add this statement to your Capfile:
15
15
 
16
16
  ## Configuration
17
17
 
18
- Below are the Capistrano configuration options with their defaults:
18
+ Below are the Capistrano configuration options with their defaults (session_token is optional):
19
19
 
20
20
  ```
21
21
  set :aws_access_key_id, ENV['AWS_ACCESS_KEY_ID']
22
22
  set :aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY']
23
+ set :aws_session_token, ENV['AWS_SESSION_TOKEN']
23
24
  set :aws_region, ENV['AWS_REGION']
24
25
  ```
25
26
 
@@ -33,4 +34,4 @@ Or, set the autoscale group using EC2 Instance Id:
33
34
 
34
35
  ```
35
36
  autoscale [<array of auto-scale-group-names>], :instance_id, user: '<deployment user>', roles: [<array of cap roles>]
36
- ```
37
+ ```
@@ -9,6 +9,7 @@ module Capistrano
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'])
11
11
  }
12
+ credentials.merge! session_token: fetch(:aws_session_token, ENV['AWS_SESSION_TOKEN']) if fetch(:aws_session_token, ENV['AWS_SESSION_TOKEN'])
12
13
  credentials.merge! region: fetch(:aws_region) if fetch(:aws_region)
13
14
  credentials
14
15
  end
@@ -9,7 +9,7 @@ module Capistrano
9
9
  include Capistrano::DSL
10
10
 
11
11
  def autoscale_groups
12
- @autoscale_groups ||= ::Aws::AutoScaling::Client.new(autoscaling_credentials).describe_auto_scaling_groups({auto_scaling_group_names: [autoscale_group_names].flatten}).auto_scaling_groups
12
+ ::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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Autoscale
3
- VERSION = '1.0.15'
3
+ VERSION = '1.0.16'
4
4
  end
5
5
  end
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.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Glancy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler