#!/usr/bin/env perl
use strict;
use warnings;
use Inca::Reporter::Version;
my $reporter = new Inca::Reporter::Version(
name => 'cluster.os.redhat.version',
version => 2,
description => 'Reports the version of the Redhat OS',
url => 'http://www.redhat.com',
package_name => 'redhat'
);
$reporter->processArgv(@ARGV);
$reporter->setVersionByFileContents('/etc/redhat-release', '(.+)');
$reporter->print();
Click here to see help information for the cluster.os.redhat.version reporter.