| 1 | # | ||||||||||||||||||||
| 2 | # (c) Jan Gehring <jan.gehring@gmail.com> | ||||||||||||||||||||
| 3 | # | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | package Rex::Cloud::Base; | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | ▶ | use v5.14.4; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 1 | our $VERSION = '1.16.1'; # VERSION | |||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 1 | ▶ | use Rex::Logger; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 15 | 0 | my $that = shift; | |||||||||||||||||||
| 16 | 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
| |||||||||||||||||||||
| 17 | 0 | my $self = {@_}; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 0 | bless( $self, $proto ); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | sub set_auth { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
set_auth: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 0 | ▶ | sub set_endpoint { | ||||||||||||||||||
|
Subroutine
set_endpoint: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 27 | 0 | my ( $self, $endpoint ) = @_; | |||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | # only set endpoint if defined | ||||||||||||||||||||
| 30 | 0 | ▶ | if ( defined $endpoint ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 31 | 0 | $self->{__endpoint} = $endpoint; | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | 0 | ▶ | sub list_plans { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_plans: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 36 | 0 | ▶ | sub list_operating_systems { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_operating_systems: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | 0 | ▶ | sub run_instance { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
run_instance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 39 | 0 | ▶ | sub terminate_instance { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
terminate_instance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 40 | 0 | ▶ | sub start_instance { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
start_instance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 41 | 0 | ▶ | sub stop_instance { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
stop_instance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 42 | 0 | ▶ | sub list_instances { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_instances: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 43 | 0 | ▶ | sub list_running_instances { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_running_instances: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 0 | ▶ | sub create_volume { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
create_volume: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 46 | 0 | ▶ | sub attach_volume { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
attach_volume: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 47 | 0 | ▶ | sub detach_volume { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
detach_volume: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 48 | 0 | ▶ | sub delete_volume { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
delete_volume: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 49 | 0 | ▶ | sub list_volumes { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_volumes: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 50 | 0 | ▶ | sub list_images { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
list_images: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | 0 | ▶ | sub add_tag { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
add_tag: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | 0 | ▶ | sub get_regions { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
get_regions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 55 | 0 | ▶ | sub get_availability_zones { Rex::Logger::debug("Not implemented"); } | ||||||||||||||||||
|
Subroutine
get_availability_zones: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | 1 | 1; | |||||||||||||||||||