Class: Jammit::S3CommandLine

Inherits:
CommandLine
  • Object
show all
Defined in:
lib/jammit/s3_command_line.rb

Instance Method Summary collapse

Constructor Details

#initializeS3CommandLine

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.message
    exit(1)
  end
end