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-7.0.0 lib/kitchen/utils.rb
openstax_kitchen-6.1.0 lib/kitchen/utils.rb
openstax_kitchen-6.0.0 lib/kitchen/utils.rb
openstax_kitchen-5.0.0 lib/kitchen/utils.rb
openstax_kitchen-4.1.1 lib/kitchen/utils.rb
openstax_kitchen-4.1.0 lib/kitchen/utils.rb
openstax_kitchen-4.0.0 lib/kitchen/utils.rb
openstax_kitchen-3.2.0 lib/kitchen/utils.rb
openstax_kitchen-3.1.0 lib/kitchen/utils.rb
openstax_kitchen-3.0.0 lib/kitchen/utils.rb