Sha256: 38435f3755d05d890462b5968b44bc8dc60eb80b9239b3076c81a4e0b0dec743

Contents?: true

Size: 603 Bytes

Versions: 105

Compression:

Stored size: 603 Bytes

Contents

# Creating this class pass so we can have a reference to their properties in
# memory: cluster_name and service_name.
# This helps us avoid making additional API calls to describe and lookup the information.
#
# Also this class allows us to pass one object around instead of both
# cluster_name and service_name.
#
# This is really only used in the Ufo::Ship class.
module Ufo
  module ECS
    Service = Struct.new(:cluster_arn, :service_arn) do
      def cluster_name
        cluster_arn.split('/').last
      end

      def service_name
        service_arn.split('/').last
      end
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
ufo-4.4.3 lib/ufo/ecs/service.rb
ufo-4.4.2 lib/ufo/ecs/service.rb
ufo-4.4.1 lib/ufo/ecs/service.rb
ufo-4.4.0 lib/ufo/ecs/service.rb
ufo-4.3.1 lib/ufo/ecs/service.rb
ufo-4.3.0 lib/ufo/ecs/service.rb
ufo-4.2.0 lib/ufo/ecs/service.rb
ufo-4.1.10 lib/ufo/ecs/service.rb
ufo-4.1.9 lib/ufo/ecs/service.rb
ufo-4.1.8 lib/ufo/ecs/service.rb
ufo-4.1.7 lib/ufo/ecs/service.rb
ufo-4.1.6 lib/ufo/ecs/service.rb
ufo-4.1.5 lib/ufo/ecs/service.rb
ufo-4.1.4 lib/ufo/ecs/service.rb
ufo-4.1.2 lib/ufo/ecs/service.rb
ufo-4.1.1 lib/ufo/ecs/service.rb
ufo-4.1.0 lib/ufo/ecs/service.rb
ufo-4.0.3 lib/ufo/ecs/service.rb
ufo-4.0.2 lib/ufo/ecs/service.rb
ufo-4.0.1 lib/ufo/ecs/service.rb