A simple example of a command line tool with Thor (for learning purposes).
$ ./s3.rb bucket my-awesome-bucket
result:
Found the bucket 'my-awesome-bucket' in S3!
$ ./s3.rb bucket my-photo-bucket --url
result:
Found the bucket 'my-photo-bucket' in S3!
http://my-photo-bucket.s3.amazonaws.com/
$ ./s3.rb list_buckets
result:
You have 1 bucket(s):
my-photo-bucket
Creates an object named tree.jpg
found in your desktop.
$ ./s3.rb create_object tree.jpg ~/Desktop/tree.jpg --bucket my-photo-bucket
result:
Found the bucket 'my-photo-bucket' in S3!
Creating object...
Created 'tree.jpg' successfully!
$ ./s3.rb help
result:
s3.rb bucket # Finds an S3 bucket (and url with --url)
s3.rb create_object # Creates an object in your bucket
s3.rb help [COMMAND] # Describe available commands or one specific command
s3.rb list_buckets # List all S3 buckets for your account