| 1 | #!/usr/bin/env perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | =head1 DESCRIPTION | ||
| 6 | |||
| 7 | The pSh3ll is a perl based command shell for managing your Amazon S3 objects. | ||
| 8 | It is built upon the Amazon S3 REST perl library. | ||
| 9 | |||
| 10 | =cut | ||
| 11 | |||
| 12 | use Shell::Amazon::S3; | ||
| 13 | |||
| 14 | my $shell = Shell::Amazon::S3->new; | ||
| 15 | $shell->load_plugins($_) for qw(ReadLineHistory Completion); | ||
| 16 | $shell->run; | ||
| 17 | |||
| 18 | __END__ | ||
| 19 | |||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | psh3ll.pl - Amazon S3 command shell for Perl | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | You need to setup aws key and secret key after run pSh3ll.pl. | ||
| 28 | These configuration is stored in ~/.psh3ll. | ||
| 29 | |||
| 30 | After configuring AWS settings, you can use psh3ll. | ||
| 31 | you can use commands with psh3ll.The commands are listed as below: | ||
| 32 | |||
| 33 | bucket [bucketname] | ||
| 34 | count [prefix] | ||
| 35 | createbucket | ||
| 36 | delete <id> | ||
| 37 | deleteall [prefix] | ||
| 38 | deletebucket | ||
| 39 | exit | ||
| 40 | get | ||
| 41 | getacl ['bucket'|'item'] <id> | ||
| 42 | getfile <id> <file> | ||
| 43 | gettorrent <id> | ||
| 44 | head ['bucket'|'item'] <id> | ||
| 45 | host [hostname] | ||
| 46 | list [prefix] [max] | ||
| 47 | listatom [prefix] [max] | ||
| 48 | listrss [prefix] [max] | ||
| 49 | listbuckets | ||
| 50 | pass [password] | ||
| 51 | put <id> <data> | ||
| 52 | putfile <id> <file> | ||
| 53 | putfilewacl <id> <file> ['private'|'public-read'|'public-read-write'|'authenticated-read'] | ||
| 54 | quit | ||
| 55 | setacl ['bucket'|'item'] <id> ['private'|'public-read'|'public-read-write'|'authenticated-read'] | ||
| 56 | user [username] | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | Takatoshi Kitano E<lt>kitano.tk (at) gmail.comE<gt> | ||
| 61 | |||
| 62 | =head1 LICENSE | ||
| 63 | |||
| 64 | This library is free software; you can redistribute it and/or modify | ||
| 65 | it under the same terms as Perl itself. | ||
| 66 | |||
| 67 | =head1 SEE ALSO | ||
| 68 | |||
| 69 | L<http://rubyforge.org/projects/rsh3ll/> | ||
| 70 | |||
| 71 | =cut |