| 1 | # | ||||||||||||||||||||
| 2 | # (c) Oleg Hardt <litwol@litwol.com> | ||||||||||||||||||||
| 3 | # | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | =head1 NAME | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | Rex::Virtualization::Lxc - Linux Containers Virtualization Module | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | =head1 DESCRIPTION | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | With this module you can manage Linux Containers. | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | =head1 SYNOPSIS | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | use Rex::Commands::Virtualization; | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | set virtualization => "Lxc"; | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | use Data::Dumper; | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | print Dumper vm list => "all"; | ||||||||||||||||||||
| 22 | print Dumper vm list => "active", | ||||||||||||||||||||
| 23 | fancy => 1, | ||||||||||||||||||||
| 24 | format => 'name,ram'; | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | print Dumper vm list => "all", | ||||||||||||||||||||
| 27 | fancy => 1; | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | =cut | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | package Rex::Virtualization::Lxc; | ||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 1 | ▶ | use v5.14.4; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 34 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 1 | our $VERSION = '1.16.1'; # VERSION | |||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | 1 | ▶ | use Rex::Virtualization::Base; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 39 | 1 | ▶ | use base qw(Rex::Virtualization::Base); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 42 | 0 | my $that = shift; | |||||||||||||||||||
| 43 | 0 | ▶ | my $proto = ref($that) || $that; | ||||||||||||||||||
|
Condition0%0/3
ref $that || $that
MC/DC0%0/2
ref $that || $that
ref $that
$that
Truth table0%0/3
A || B
A= ref $thatB= $that
| |||||||||||||||||||||
| 44 | 0 | my $self = {@_}; | |||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 0 | bless( $self, $proto ); | |||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 0 | return $self; | |||||||||||||||||||
| 49 | } | ||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | 1 | 1; | |||||||||||||||||||