Sha256: 21c5e1dcf9b5e4d1ec3339d2305ddc213b3659d7e30986dbfdf2eac7ae69d2ae

Contents?: true

Size: 494 Bytes

Versions: 45

Compression:

Stored size: 494 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.labfile.config[:domain]
          container.domain
        end.compact.uniq
      end

    end

  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
testlab-0.7.3 lib/testlab/container/class_methods.rb
testlab-0.7.2 lib/testlab/container/class_methods.rb
testlab-0.7.1 lib/testlab/container/class_methods.rb
testlab-0.7.0 lib/testlab/container/class_methods.rb
testlab-0.6.17 lib/testlab/container/class_methods.rb
testlab-0.6.16 lib/testlab/container/class_methods.rb
testlab-0.6.15 lib/testlab/container/class_methods.rb
testlab-0.6.14 lib/testlab/container/class_methods.rb
testlab-0.6.12 lib/testlab/container/class_methods.rb
testlab-0.6.11 lib/testlab/container/class_methods.rb
testlab-0.6.10 lib/testlab/container/class_methods.rb
testlab-0.6.9 lib/testlab/container/class_methods.rb
testlab-0.6.8 lib/testlab/container/class_methods.rb
testlab-0.6.7 lib/testlab/container/class_methods.rb
testlab-0.6.6 lib/testlab/container/class_methods.rb
testlab-0.6.5 lib/testlab/container/class_methods.rb
testlab-0.6.4 lib/testlab/container/class_methods.rb
testlab-0.6.3 lib/testlab/container/class_methods.rb
testlab-0.6.2 lib/testlab/container/class_methods.rb
testlab-0.6.1 lib/testlab/container/class_methods.rb