Sha256: 21a6207ed67b1e78ff4ff3c4f1a4695fd9c7e067a994816230f0b5c043106528
Contents?: true
Size: 765 Bytes
Versions: 7
Compression:
Stored size: 765 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 #{@service.color(:green)} service on the #{@cluster.color(: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 #{@service.color(:green)} service in #{@cluster.color(:green)} cluster to #{@count}" unless @options[:mute] end def service_exists? !!service end end end
Version data entries
7 entries across 7 versions & 1 rubygems