class Inspec::Resources::Podman

def run_command(subcommand)

Returns the command output or raises the command execution error.
Runs the given podman command on the host machine on which podman is installed
def run_command(subcommand)
  result = inspec.command("podman #{subcommand}")
  if result.stderr.empty?
    result.stdout
  else
    raise "Error while running command \'podman #{subcommand}\' : #{result.stderr}"
  end
end