class Chef::Search::Query

Attributes

rest[RW]

Public Class Methods

new(url=nil) click to toggle source
# File lib/chef/search/query.rb, line 33
def initialize(url=nil)
  @rest = Chef::REST.new(url ||Chef::Config[:chef_server_url])
end

Public Instance Methods

list_indexes() click to toggle source
# File lib/chef/search/query.rb, line 55
def list_indexes
  @rest.get_rest("search")
end

Private Instance Methods

escape(s) click to toggle source
# File lib/chef/search/query.rb, line 60
def escape(s)
  s && URI.escape(s.to_s)
end