Class: Chef::RequestID

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/chef/request_id.rb

Instance Method Summary collapse

Instance Method Details

#generate_request_idObject



33
34
35
# File 'lib/chef/request_id.rb', line 33

def generate_request_id
  SecureRandom.uuid
end

#request_idObject



29
30
31
# File 'lib/chef/request_id.rb', line 29

def request_id
  @request_id ||= generate_request_id
end

#reset_request_idObject



25
26
27
# File 'lib/chef/request_id.rb', line 25

def reset_request_id
  @request_id = nil
end