module Chef::Mixin::RootRestv0

Public Instance Methods

root_rest() click to toggle source
# File lib/chef/mixin/root_rest.rb, line 22
def root_rest
  # Use v0 API for now
  # Rather than upgrade all of this code to move to v1, the goal is to remove the
  # need for this plugin.  See
  # https://github.com/chef/chef/issues/3517
  @root_rest ||= Chef::ServerAPI.new(Chef::Config[:chef_server_root], { api_version: "0" })
end