module S3AssetsDeployer

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/s3_assets_deployer.rb, line 16
def self.config
  @config ||= Configuration.new
end
configure() { |config| ... } click to toggle source
# File lib/s3_assets_deployer.rb, line 20
def self.configure
  yield config
end
run() click to toggle source
# File lib/s3_assets_deployer.rb, line 6
def self.run
  deployer = Deployer.new(
    storage: s3,
    root_path: config.assets.root_path,
    prefix_paths: config.assets.prefix_paths,
  )

  deployer.run
end
s3() click to toggle source
# File lib/s3_assets_deployer.rb, line 24
def self.s3
  @s3 ||= AwsS3.new(
    bucket: config.s3.bucket,
    prefix_key: config.s3.prefix_key,
  )
end