Skip to content

Commit

Permalink
remove shortname
Browse files Browse the repository at this point in the history
  • Loading branch information
scmorrison committed Jul 5, 2016
1 parent 134e8e0 commit a236d9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
3 changes: 0 additions & 3 deletions README.md
Expand Up @@ -36,9 +36,6 @@ say AWS::Pricing::list-offers();

# List current offers for specific service. Valid formats are json or csv.
say AWS::Pricing::service-offers(service_code => 'AmazonS3', format => 'json');

# The shortname `AWSPricing` is also available:
say AWSPricing::list-offers();
```

### Valid service codes:
Expand Down
7 changes: 4 additions & 3 deletions bin/aws-pricing
Expand Up @@ -2,6 +2,7 @@

use v6;
use AWS::Pricing;
constant AWSPrice = AWS::Pricing;

# Defaults
my $default_cache_dir = "$*HOME/.aws-pricing";
Expand All @@ -11,7 +12,7 @@ my $default_format = 'json';
sub set-config(%options) {
for %options.kv -> $option, $value {
if $value.defined {
AWS::Pricing::config(|($option => $value));
AWSPrice::config(|($option => $value));
}
}
}
Expand All @@ -28,7 +29,7 @@ multi MAIN('list', 'services',
set-config(%options);

# List all Service Offer indexes
say AWS::Pricing::list-services();
say AWSPrice::list-services();

}

Expand All @@ -46,7 +47,7 @@ multi MAIN('service', 'offers',
set-config(%options);

# List current offers for specific service
say AWS::Pricing::service-offers(service_code => $service_code, format => $format);
say AWSPrice::service-offers(service_code => $service_code, format => $format);

}

Expand Down
4 changes: 0 additions & 4 deletions lib/AWS/Pricing.pm6
Expand Up @@ -127,8 +127,4 @@ our sub config(Str :$cache_dir,

}

my package EXPORT::DEFAULT {
constant AWSPricing = AWS::Pricing;
}

# vim: ft=perl6
5 changes: 1 addition & 4 deletions t/00-basics.t
@@ -1,10 +1,7 @@
use Test;
use AWS::Pricing;

plan 2;
plan 1;

# use
use-ok('AWS::Pricing');

# shortname
is AWSPricing, AWS::Pricing, 'shortname, 1/1';

0 comments on commit a236d9e

Please sign in to comment.