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

feature(cli): run request

parent 630e390f
......@@ -601,6 +601,17 @@ sub rebase {
$base->rebase(Ravada::Utils::user_daemon, $domain);
}
sub run_request {
my $id_request = shift;
my $rvd_back = Ravada->new(%CONFIG);
my $req = Ravada::Request->open($id_request);
$req->status('requested');
$rvd_back->_execute($req,1);
warn $req->command." ".$req->status
.($req->error or '')
."\n";
}
sub DESTROY {
}
......@@ -631,6 +642,8 @@ shutdown_domain($SHUTDOWN_DOMAIN, $ALL, $HIBERNATED)
if defined $SHUTDOWN_DOMAIN;
add_locale_repository($ADD_LOCALE_REPOSITORY) if $ADD_LOCALE_REPOSITORY;
run_request($RUN_REQUEST) if $RUN_REQUEST;
}
......
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