Module: KPM::SystemProxy::EntropyAvailable

Defined in:
lib/kpm/system_helpers/entropy_available.rb

Class Method Summary collapse

Class Method Details

.fetchObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/kpm/system_helpers/entropy_available.rb', line 6

def fetch
  entropy_available = nil
  if OS.windows?
    entropy_available = fetch_windows
  elsif OS.linux?
    entropy_available = fetch_linux
  elsif OS.mac?
    entropy_available = fetch_mac
  end

  entropy_available
end

.get_labelsObject



19
20
21
22
23
# File 'lib/kpm/system_helpers/entropy_available.rb', line 19

def get_labels
  labels = [{:label => :entropy},
            {:label => :value}]
  labels
end