| 1 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Net::Amazon::Config::Profile; | ||||||||||
| 5 | # ABSTRACT: Amazon credentials for given profile | ||||||||||
| 6 | 2 | our $VERSION = '0.002'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use Params::Validate (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 2 | my @attributes; | |||||||||
| 11 | |||||||||||
| 12 | 2 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 2 | @attributes = qw( | |||||||||
| 14 | profile_name | ||||||||||
| 15 | access_key_id | ||||||||||
| 16 | secret_access_key | ||||||||||
| 17 | certificate_file | ||||||||||
| 18 | private_key_file | ||||||||||
| 19 | ec2_keypair_name | ||||||||||
| 20 | ec2_keypair_file | ||||||||||
| 21 | cf_keypair_id | ||||||||||
| 22 | cf_private_key_file | ||||||||||
| 23 | aws_account_id | ||||||||||
| 24 | canonical_user_id | ||||||||||
| 25 | ); | ||||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 2 | ▶ | use Object::Tiny @attributes; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 29 | |||||||||||
| 30 | 3 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | 3 | my ( $class, $first, @rest ) = @_; | |||||||||
| 32 | 3 | ▶ | my @args = ref $first eq 'ARRAY' ? (@$first) : ( $first, @rest ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 3 | my %args = Params::Validate::validate( @args, { map { $_ => 0 } @attributes } ); | |||||||||
| 34 | 3 | return bless \%args, $class; | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 2 | 1; | |||||||||
| 38 | |||||||||||
| 39 | __END__ | ||||||||||