| 1 | package Statocles::Command::apps; | ||
| 2 | 2 | our $VERSION = '0.099'; | |
| 3 | # ABSTRACT: List the apps in the site | ||
| 4 | |||
| 5 | 2 | ▶ | use Statocles::Base 'Command'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | sub run { |
|
Subroutine
run: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 8 | 1 | my ( $self, @argv ) = @_; | |
| 9 | 1 | my $apps = $self->site->apps; | |
| 10 | 1 | for my $app_name ( keys %{ $apps } ) { | |
| 11 | 1 | my $app = $apps->{$app_name}; | |
| 12 | 1 | my $root = $app->url_root; | |
| 13 | 1 | my $class = ref $app; | |
| 14 | 1 | say "$app_name ($root -- $class)"; | |
| 15 | } | ||
| 16 | 1 | return 0; | |
| 17 | } | ||
| 18 | |||
| 19 | 2 | 1; | |
| 20 | |||
| 21 | __END__ | ||