/usr/share/perl5/VUser/Google/Provisioning.pm is in libvuser-google-api-perl 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | package VUser::Google::Provisioning;
use warnings;
use strict;
our $VERSION = '0.2.0';
use Moose;
has 'google' => (
is => 'rw',
isa => 'VUser::Google::ApiProtocol',
required => 1
);
has 'base_url' => (is => 'rw', isa => 'Str');
# Turn on deugging
has 'debug' => (is => 'rw', default => 0);
#### Methods
## Util
#print out debugging to STDERR if debug is set
sub dprint
{
my $self = shift;
my $text = shift;
my @args = @_;
if( $self->debug and defined ($text) ) {
print STDERR sprintf ("$text\n", @args);
}
}
# Escape " with " for XML
sub _escape_quotes {
my $self = shift;
my $text = shift;
$text =~ s/\"/"/;
return $text;
}
# Replace 1 with 'true' other with 0
sub _as_bool {
my $self = shift;
my $value = shift;
return $value ? 'true' : 'false';
}
no Moose;
__PACKAGE__->meta->make_immutable;
1;
__END__
|