Module: Capistrano::ASG::Rolling::Configuration
- Extended by:
- DSL
- Defined in:
- lib/capistrano/asg/rolling/configuration.rb
Overview
Singleton that holds the configuration.
Class Method Summary collapse
- .auto_scaling_group_name ⇒ Object
-
.autoscale_groups ⇒ Object
Registered Auto Scaling Groups.
- .aws_access_key_id ⇒ Object
- .aws_region ⇒ Object
- .aws_secret_access_key ⇒ Object
- .aws_session_token ⇒ Object
- .instance_overrides ⇒ Object
- .instance_refresh_polling_interval ⇒ Object
-
.instances ⇒ Object
Launched Instances.
- .keep_versions ⇒ Object
-
.launch_templates ⇒ Object
Updated Launch Templates.
- .rolling_update=(value) ⇒ Object
- .rolling_update? ⇒ Boolean
- .ssh_options ⇒ Object
- .use_private_ip_address? ⇒ Boolean
- .verbose? ⇒ Boolean
- .wait_for_instance_refresh? ⇒ Boolean
Class Method Details
.auto_scaling_group_name ⇒ Object
43 44 45 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 43 def auto_scaling_group_name fetch(:asg_rolling_group_name) end |
.autoscale_groups ⇒ Object
Registered Auto Scaling Groups.
13 14 15 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 13 def autoscale_groups @autoscale_groups ||= AutoscaleGroups.new end |
.aws_access_key_id ⇒ Object
27 28 29 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 27 def aws_access_key_id fetch(:aws_access_key_id) end |
.aws_region ⇒ Object
39 40 41 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 39 def aws_region fetch(:aws_region) end |
.aws_secret_access_key ⇒ Object
31 32 33 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 31 def aws_secret_access_key fetch(:aws_secret_access_key) end |
.aws_session_token ⇒ Object
35 36 37 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 35 def aws_session_token fetch(:aws_session_token) end |
.instance_overrides ⇒ Object
51 52 53 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 51 def instance_overrides fetch(:asg_rolling_instance_overrides) end |
.instance_refresh_polling_interval ⇒ Object
79 80 81 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 79 def instance_refresh_polling_interval fetch(:asg_instance_refresh_polling_interval, 30) end |
.instances ⇒ Object
Launched Instances.
18 19 20 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 18 def instances @instances ||= Instances.new end |
.keep_versions ⇒ Object
59 60 61 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 59 def keep_versions fetch(:asg_rolling_keep_versions, fetch(:keep_releases)) end |
.launch_templates ⇒ Object
Updated Launch Templates.
23 24 25 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 23 def launch_templates @launch_templates ||= LaunchTemplates.new end |
.rolling_update=(value) ⇒ Object
67 68 69 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 67 def rolling_update=(value) set(:asg_rolling_update, value) end |
.rolling_update? ⇒ Boolean
71 72 73 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 71 def rolling_update? fetch(:asg_rolling_update) end |
.ssh_options ⇒ Object
47 48 49 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 47 def fetch(:asg_rolling_ssh_options, fetch(:ssh_options)) end |
.use_private_ip_address? ⇒ Boolean
55 56 57 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 55 def use_private_ip_address? fetch(:asg_rolling_use_private_ip_address) end |
.verbose? ⇒ Boolean
63 64 65 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 63 def verbose? fetch(:asg_rolling_verbose) end |
.wait_for_instance_refresh? ⇒ Boolean
75 76 77 |
# File 'lib/capistrano/asg/rolling/configuration.rb', line 75 def wait_for_instance_refresh? fetch(:asg_wait_for_instance_refresh, false) end |