Commit d9b45b24 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#62] returns module version

parent 15ac699f
......@@ -3,6 +3,8 @@ package Ravada;
use warnings;
use strict;
our $VERSION = '0.1.0';
use Carp qw(carp croak);
use Data::Dumper;
use DBIx::Connector;
......@@ -1030,6 +1032,16 @@ sub import_domain {
return $vm->import_domain($name, $user);
}
=head2 version
Returns the version of the module
=cut
sub version {
return $VERSION;
}
=head1 AUTHOR
......
......@@ -500,4 +500,14 @@ sub disconnect_vm {
%VM = ();
}
=head2 version
Returns the version of the main module
=cut
sub version {
return Ravada::version();
}
1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment