App-Glacier
view release on metacpan or search on metacpan
lib/App/Glacier/Command/Jobs.pm view on Meta::CPAN
=head1 NAME
glacier jobs - list Glacier jobs
=head1 SYNOPSIS
B<glacier jobs>
[B<-cl>]
[B<--cached>]
[B<--long>]
[B<--time-style=>B<default>|B<full-iso>|B<long-iso>|B<iso>|B<locale>|B<+I<FORMAT>>]
[I<VAULT>...]
=head1 DESCRIPTION
Verifies and lists pending and completed glacier jobs. By default, all jobs
are listed. If one or more I<VAULT> arguments are given, only jobs for the
listed vaults are displayed.
Verification consists in querying the Glacier for the status of the current
job and updating cached data accordingly. Failed and expired jobst are
lib/App/Glacier/Command/Jobs.pm view on Meta::CPAN
List ISO 8601 date and time in minutes, e.g., "2017-05-23 15:53". Equivalent
to "B<+%Y-%m-%d %H:%M>".
=item B<iso>
B<GNU ls>-compatible "iso": ISO 8601 dates for non-recent timestamps (e.g.,
"2017-05-23"), and ISO 8601 month, day, hour, and minute for recent
timestamps (e.g., "03-30 23:45"). Timestamp is considered "recent", if it
is not older than 6 months ago.
=item B<locale>
List timestamps in a locale-dependent form. This is equivalent to B<+%c>.
=back
=back
=head1 SEE ALSO
B<glacier>(1),
B<strftime>(3).
lib/App/Glacier/Command/ListVault.pm view on Meta::CPAN
glacier ls - list vaults or archives
=head1 SYNOPSIS
B<glacier ls>
[B<-SUcdlhtr>]
[B<--cached>]
[B<--human-readable>]
[B<--sort=>B<none>|B<name>|B<time>|B<size>]
[B<--reverse>]
[B<--time-style=>B<default>|B<full-iso>|B<long-iso>|B<iso>|B<locale>|B<+I<FORMAT>>]
[I<VAULT>]
[I<FILE>...]
=head1 DESCRIPTION
Displays information about vaults and files.
Used without arguments, displays the list of existing vaults.
With one argument, lists files in the named vault, unless B<-d> is
lib/App/Glacier/Command/ListVault.pm view on Meta::CPAN
List ISO 8601 date and time in minutes, e.g., "2017-05-23 15:53". Equivalent
to "B<+%Y-%m-%d %H:%M>".
=item B<iso>
B<GNU ls>-compatible "iso": ISO 8601 dates for non-recent timestamps (e.g.,
"2017-05-23"), and ISO 8601 month, day, hour, and minute for recent
timestamps (e.g., "03-30 23:45"). Timestamp is considered "recent", if it
is not older than 6 months ago.
=item B<locale>
List timestamps in a locale-dependent form. This is equivalent to B<+%c>.
=back
=back
=head1 SEE ALSO
B<glacier>(1),
B<strftime>(3).
lib/App/Glacier/DateTime.pm view on Meta::CPAN
return '%Y-%m-%d';
}
}
my %format_can = (
default => \&_fmt_default,
iso => \&_fmt_iso,
'long-iso' => '%Y-%m-%d %H:%M',
'full-iso' => '%Y-%m-%d %H:%M:%S.%N %z',
'standard' => '%Y-%m-%dT%H:%M:%SZ',
locale => '%c'
);
sub canned_format {
my $self = shift;
my $fmt = shift || 'default';
if ($fmt =~ /^\+(.+)/) {
return $self->strftime($1);
} elsif (exists($format_can{$fmt})) {
$fmt = $format_can{$fmt};
( run in 2.221 seconds using v1.01-cache-2.11-cpan-ceb78f64989 )