Method: LambdaConvert::CLI.upload_file
- Defined in:
- lib/lambda_convert/cli.rb
.upload_file(input_file, input_key) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/lambda_convert/cli.rb', line 38 def self.upload_file(input_file, input_key) logger.info("Uploading file to s3://#{config.s3_bucket}/#{input_key}") File.open(input_file, 'rb') do |file| s3_client.put_object(bucket: config.s3_bucket, key: input_key, body: file) end end |