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

Class Method Details

.auto_scaling_group_nameObject



43
44
45
# File 'lib/capistrano/asg/rolling/configuration.rb', line 43

def auto_scaling_group_name
  fetch(:asg_rolling_group_name)
end

.autoscale_groupsObject

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_idObject



27
28
29
# File 'lib/capistrano/asg/rolling/configuration.rb', line 27

def aws_access_key_id
  fetch(:aws_access_key_id)
end

.aws_regionObject



39
40
41
# File 'lib/capistrano/asg/rolling/configuration.rb', line 39

def aws_region
  fetch(:aws_region)
end

.aws_secret_access_keyObject



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_tokenObject



35
36
37
# File 'lib/capistrano/asg/rolling/configuration.rb', line 35

def aws_session_token
  fetch(:aws_session_token)
end

.instance_overridesObject



51
52
53
# File 'lib/capistrano/asg/rolling/configuration.rb', line 51

def instance_overrides
  fetch(:asg_rolling_instance_overrides)
end

.instance_refresh_polling_intervalObject



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

.instancesObject

Launched Instances.



18
19
20
# File 'lib/capistrano/asg/rolling/configuration.rb', line 18

def instances
  @instances ||= Instances.new
end

.keep_versionsObject



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_templatesObject

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

Returns:

  • (Boolean)


71
72
73
# File 'lib/capistrano/asg/rolling/configuration.rb', line 71

def rolling_update?
  fetch(:asg_rolling_update)
end

.ssh_optionsObject



47
48
49
# File 'lib/capistrano/asg/rolling/configuration.rb', line 47

def ssh_options
  fetch(:asg_rolling_ssh_options, fetch(:ssh_options))
end

.use_private_ip_address?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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