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.0.0 lib/ufo/ecs/service.rb
ufo-3.5.7 lib/ufo/ecs/service.rb
ufo-3.5.6 lib/ufo/ecs/service.rb
ufo-3.5.5 lib/ufo/ecs/service.rb
ufo-3.5.4 lib/ufo/ecs/service.rb
ufo-3.5.3 lib/ufo/ecs/service.rb
ufo-3.5.2 lib/ufo/ecs/service.rb
ufo-3.5.1 lib/ufo/ecs/service.rb
ufo-3.5.0 lib/ufo/ecs/service.rb
ufo-3.4.4 lib/ufo/ecs/service.rb
ufo-3.4.3 lib/ufo/ecs/service.rb
ufo-3.4.2 lib/ufo/ecs/service.rb
ufo-3.4.1 lib/ufo/ecs/service.rb
ufo-3.4.0 lib/ufo/ecs/service.rb
ufo-3.3.2 lib/ufo/ecs/service.rb
ufo-3.3.1 lib/ufo/ecs/service.rb
ufo-3.3.0 lib/ufo/ecs/service.rb
ufo-3.2.2 lib/ufo/ecs/service.rb
ufo-3.2.1 lib/ufo/ecs/service.rb
ufo-3.2.0 lib/ufo/ecs/service.rb