Method: Inspec::Shell#print_target_info

Defined in:
lib/inspec/shell.rb


99
100
101
102
103
104
105
106
107
108
# File 'lib/inspec/shell.rb', line 99

def print_target_info
  ctx = @runner.backend
  puts "You are currently running on:\n\nOS platform:  \#{mark ctx.os[:name] || 'unknown'}\nOS family:  \#{mark ctx.os[:family] || 'unknown'}\nOS release: \#{mark ctx.os[:release] || 'unknown'}\n"
end