Sha256: add3e4e9aaae059cb76d3382f90aa29e853066377a2c999818b5753cd8e2d1c2
Contents?: true
Size: 356 Bytes
Versions: 6
Compression:
Stored size: 356 Bytes
Contents
require "aws-sdk-s3" class Lono::Builder::Template::AwsService def s3 return @s3 if @s3 options = {} endpoint = ENV['S3_ENDPOINT'] if ENV['S3_ENDPOINT'] options[:endpoint] = endpoint if endpoint if options[:endpoint] options[:region] = options[:endpoint].split('.')[1] end @s3 = Aws::S3::Client.new(options) end end
Version data entries
6 entries across 6 versions & 1 rubygems