class ChefCLI::Policyfile::ChefServerLockFetcher

def http_client

Returns:
  • (Hash) - Returns a parsed JSON object... I think.

Other tags:
    See: Chef::HTTP::JSONInput#get -
    See: Chef:ServerAPI -
def http_client
  @http_client ||= Chef::ServerAPI.new(source_options[:server],
    signing_key_filename: chef_config.client_key,
    client_name: chef_config.node_name)
end