Sha256: 05096bc353059548ffe8447a9db1c66b9503a0b3996cf6babdd286a8639b9b94

Contents?: true

Size: 346 Bytes

Versions: 30

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Kitchen
  # Utility methods
  #
  module Utils
    # A standard way to convert a search path to an element type
    #
    # @param search_path [String, Array<String>] selectors
    # @return [String]
    #
    def self.search_path_to_type(search_path)
      [search_path].flatten.join(',')
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
openstax_kitchen-19.0.0 lib/kitchen/utils.rb
openstax_kitchen-18.0.0 lib/kitchen/utils.rb
openstax_kitchen-17.1.0 lib/kitchen/utils.rb
openstax_kitchen-17.0.0 lib/kitchen/utils.rb
openstax_kitchen-16.0.0 lib/kitchen/utils.rb
openstax_kitchen-15.0.0 lib/kitchen/utils.rb
openstax_kitchen-14.0.0 lib/kitchen/utils.rb
openstax_kitchen-13.0.0 lib/kitchen/utils.rb
openstax_kitchen-12.2.0 lib/kitchen/utils.rb
openstax_kitchen-12.1.0 lib/kitchen/utils.rb
openstax_kitchen-12.0.0 lib/kitchen/utils.rb
openstax_kitchen-11.2.0 lib/kitchen/utils.rb
openstax_kitchen-11.1.0 lib/kitchen/utils.rb
openstax_kitchen-11.0.0 lib/kitchen/utils.rb
openstax_kitchen-10.0.0 lib/kitchen/utils.rb
openstax_kitchen-9.2.0 lib/kitchen/utils.rb
openstax_kitchen-9.1.0 lib/kitchen/utils.rb
openstax_kitchen-9.0.0 lib/kitchen/utils.rb
openstax_kitchen-8.0.1 lib/kitchen/utils.rb
openstax_kitchen-8.0.0 lib/kitchen/utils.rb