Module: Specinfra::Helper::Os

Defined in:
lib/beaker-rspec/helpers/serverspec.rb

Constant Summary collapse

@@known_nodes =
{}

Instance Method Summary collapse

Instance Method Details

#osObject


67
68
69
70
71
72
73
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 67

def os
  working_node_name = get_working_node.to_s
  if !@@known_nodes[working_node_name] # haven't seen this yet, better detect the os
    @@known_nodes[working_node_name] = property[:os] = detect_os
  end
  @@known_nodes[working_node_name]
end