Sha256: 9022109be15d4cf3fd0633f68fd0d7958d48e15f5fa3fab98b0c78da4903c1cd

Contents?: true

Size: 533 Bytes

Versions: 52

Compression:

Stored size: 533 Bytes

Contents

class TestLab
  class Container

    module ClassMethods

      # Container domain list
      #
      # Returns an array of strings containing all the unique domains defined
      # across all containers
      #
      # @return [Array<String>] A unique array of all defined domain names.
      def domains
        self.all.select{ |container| (!container.template rescue true) }.map do |container|
          container.domain ||= container.node.domain
          container.domain
        end.compact.uniq
      end

    end

  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
testlab-1.22.4 lib/testlab/container/class_methods.rb
testlab-1.22.3 lib/testlab/container/class_methods.rb
testlab-1.22.2 lib/testlab/container/class_methods.rb
testlab-1.22.1 lib/testlab/container/class_methods.rb
testlab-1.22.0 lib/testlab/container/class_methods.rb
testlab-1.21.1 lib/testlab/container/class_methods.rb
testlab-1.21.0 lib/testlab/container/class_methods.rb
testlab-1.20.6 lib/testlab/container/class_methods.rb
testlab-1.20.5 lib/testlab/container/class_methods.rb
testlab-1.20.4 lib/testlab/container/class_methods.rb
testlab-1.20.3 lib/testlab/container/class_methods.rb
testlab-1.20.2 lib/testlab/container/class_methods.rb
testlab-1.20.1 lib/testlab/container/class_methods.rb
testlab-1.20.0 lib/testlab/container/class_methods.rb
testlab-1.19.0 lib/testlab/container/class_methods.rb
testlab-1.18.1 lib/testlab/container/class_methods.rb
testlab-1.18.0 lib/testlab/container/class_methods.rb
testlab-1.17.0 lib/testlab/container/class_methods.rb
testlab-1.16.1 lib/testlab/container/class_methods.rb
testlab-1.16.0 lib/testlab/container/class_methods.rb