Class: Chef::RequestID
- Inherits:
-
Object
- Object
- Chef::RequestID
- Includes:
- Singleton
- Defined in:
- lib/chef/request_id.rb
Instance Method Summary collapse
Instance Method Details
#generate_request_id ⇒ Object
33 34 35 |
# File 'lib/chef/request_id.rb', line 33 def generate_request_id SecureRandom.uuid end |
#request_id ⇒ Object
29 30 31 |
# File 'lib/chef/request_id.rb', line 29 def request_id @request_id ||= generate_request_id end |
#reset_request_id ⇒ Object
25 26 27 |
# File 'lib/chef/request_id.rb', line 25 def reset_request_id @request_id = nil end |