Class: Jammit::S3CommandLine
- Inherits:
-
CommandLine
- Object
- CommandLine
- Jammit::S3CommandLine
- Defined in:
- lib/jammit/s3_command_line.rb
Instance Method Summary collapse
-
#initialize ⇒ S3CommandLine
constructor
A new instance of S3CommandLine.
Constructor Details
#initialize ⇒ S3CommandLine
Returns a new instance of S3CommandLine.
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jammit/s3_command_line.rb', line 4 def initialize super ensure_s3_configuration begin Jammit.upload_to_s3! rescue S3::Error::BucketAlreadyExists => e # tell them to pick another name puts e. exit(1) end end |