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