Ignore:
Timestamp:
Sep 17, 2018, 5:39:24 PM (6 months ago)
Author:
GomoR <gomor@…>
Branch:
default
Message:
  • new: client::elasticsearch: list_index_readonly Command
  • bugfix: client::elasticsearch: correctly reset readonly indices on reset_index_readonly Command
  • new: system::virtualbox: register Command
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Metabrik/System/Virtualbox.pm

    r969 r974  
    2929         command => [ qw(command) ],
    3030         list => [ ],
     31         register => [ qw(file_vbox) ],
    3132         start => [ qw(name type|OPTIONAL) ],
    3233         restore => [ qw(name type|OPTIONAL) ], # Alias for start
     
    8990}
    9091
     92sub register {
     93   my $self = shift;
     94   my ($vbox) = @_;
     95
     96   $self->brik_help_run_undef_arg('register', $vbox) or return;
     97   $self->brik_help_run_file_not_found('register', $vbox) or return;
     98
     99   if ($vbox !~ m{\.vbox$}) {
     100      return $self->log->error("register: give a .vbox file as input");
     101   }
     102
     103   return $self->command("registervm \"$vbox\"");
     104}
     105
    91106sub start {
    92107   my $self = shift;
Note: See TracChangeset for help on using the changeset viewer.