Sha256: 79c5ffa7c295254100ae36abd7a9052a6d65684363acf49c989bb7589ab0a70f

Contents?: true

Size: 477 Bytes

Versions: 29

Compression:

Stored size: 477 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.map do |container|
          container.domain ||= container.node.domain
          container.domain
        end.compact.uniq
      end

    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
testlab-1.5.1 lib/testlab/container/class_methods.rb
testlab-1.5.0 lib/testlab/container/class_methods.rb
testlab-1.4.4 lib/testlab/container/class_methods.rb
testlab-1.4.3 lib/testlab/container/class_methods.rb
testlab-1.4.2 lib/testlab/container/class_methods.rb
testlab-1.4.1 lib/testlab/container/class_methods.rb
testlab-1.4.0 lib/testlab/container/class_methods.rb
testlab-1.3.2 lib/testlab/container/class_methods.rb
testlab-1.3.1 lib/testlab/container/class_methods.rb
testlab-1.3.0 lib/testlab/container/class_methods.rb
testlab-1.2.3 lib/testlab/container/class_methods.rb
testlab-1.2.2 lib/testlab/container/class_methods.rb
testlab-1.2.1 lib/testlab/container/class_methods.rb
testlab-1.2.0 lib/testlab/container/class_methods.rb
testlab-1.1.0 lib/testlab/container/class_methods.rb
testlab-1.0.1 lib/testlab/container/class_methods.rb
testlab-1.0.0 lib/testlab/container/class_methods.rb
testlab-0.9.1 lib/testlab/container/class_methods.rb
testlab-0.9.0 lib/testlab/container/class_methods.rb
testlab-0.8.6 lib/testlab/container/class_methods.rb