Class: Facter::TPM::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/tpm/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sys_path) ⇒ Util

Returns a new instance of Util.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/facter/tpm/util.rb', line 9

def initialize(sys_path)
  @sys_path = sys_path

  @result = {
    'sys_path' => sys_path,
    'version'  => version,
    'status'   => status
  }

  @result['pubek'] = pubek(@result['status'])
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



7
8
9
# File 'lib/facter/tpm/util.rb', line 7

def result
  @result
end