#
# (c) Ferenc Erki <erkiferenc@gmail.com>, adjust GmbH
#
# vim: set ts=2 sw=2 tw=0:
# vim: set expandtab:
package
Rex::Interface::Shell::Idrac;
use
strict;
use
warnings;
our
$VERSION
=
'1.3.1_1'
;
# TRIAL VERSION
sub
new {
my
$class
=
shift
;
my
$proto
=
ref
(
$class
) ||
$class
;
my
$self
=
$proto
->SUPER::new(
@_
);
bless
(
$self
,
$class
);
return
$self
;
}
sub
detect {
my
(
$self
,
$con
) =
@_
;
my
(
$output
) =
$con
->_exec(
'version'
);
if
(
defined
$output
&&
$output
=~ m/SM CLP Version: / ) {
return
1;
}
return
0;
}
sub
exec
{
my
(
$self
,
$cmd
,
$option
) =
@_
;
return
$cmd
;
}
1;