Sha256: 43e3a1b48aead2276f01ca2f0a537d5459923399beae949ddc4540660308406e
Contents?: true
Size: 801 Bytes
Versions: 14
Compression:
Stored size: 801 Bytes
Contents
module Ufo class Scale < Base delegate :service, to: :info def initialize(service, count, options={}) super(service, options) @count = count end def update unless service_exists? puts "Unable to find the #{@pretty_service_name.colorize(:green)} service on the #{@cluster.colorize(:green)} cluster." puts "Are you sure you are trying to scale the right service on the right cluster?" exit end ecs.update_service( service: service.service_name, cluster: @cluster, desired_count: @count ) puts "Scale #{@pretty_service_name.colorize(:green)} service in #{@cluster.colorize(:green)} cluster to #{@count}" unless @options[:mute] end def service_exists? !!service end end end
Version data entries
14 entries across 14 versions & 1 rubygems