class Tsudura::Aws::AutoScale
Public Class Methods
new(config, timestamp)
click to toggle source
# File lib/tsudura/aws/auto_scale.rb, line 5 def initialize(config, timestamp) @config = config @timestamp = timestamp end
Public Instance Methods
update()
click to toggle source
# File lib/tsudura/aws/auto_scale.rb, line 10 def update autoscaling.update_auto_scaling_group( auto_scaling_group_name: @config[:auto_scaling_group_name], launch_configuration_name: "#{@config[:service]}-#{short_env}-#{@timestamp}", ) end
Private Instance Methods
autoscaling()
click to toggle source
# File lib/tsudura/aws/auto_scale.rb, line 19 def autoscaling @autoscaling ||= ::Aws::AutoScaling::Client.new(region: 'ap-northeast-1') end