Class: Chef::Telemetry::Session
- Inherits:
-
Object
- Object
- Chef::Telemetry::Session
- Defined in:
- lib/chef/telemetry/session.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
8 9 10 11 12 13 14 |
# File 'lib/chef/telemetry/session.rb', line 8 def initialize @id = if live_session? File.read(session_file).chomp else new_session end end |
Instance Method Details
#id ⇒ Object
16 17 18 19 |
# File 'lib/chef/telemetry/session.rb', line 16 def id FileUtils.touch(session_file) @id end |