Sha256: e2b47b9f56515e6304815a605fb3c918c4d35b9f24d7dffa252416837903b4a5
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
module Ufo class Base extend Memoist include Stack::Helper def initialize(service, options={}) @service = switch_current(service) @options = options @cluster = @options[:cluster] || default_cluster(@service) @stack_name = adjust_stack_name(@cluster, @service) end def switch_current(service) Current.service!(service) end def info Info.new(@service, @options) end memoize :info def no_service_message <<-EOL No #{@service.color(:green)} ecs service found. No CloudFormation stack named #{@stack_name.color(:green)} found. Are sure it exists? EOL end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ufo-4.5.2 | lib/ufo/base.rb |
ufo-4.5.1 | lib/ufo/base.rb |
ufo-4.5.0 | lib/ufo/base.rb |