class WebpackerUploader::Configuration

This is the class which holds the configuration options.

Options are set and retrieved using `WebpackerUploader.config` and `WebpackerUploader.configure`.

Attributes

ignored_extensions[RW]

@return [Array] the file extentions ignored by the uploader.

log_output[RW]

@return [Boolean] whether or not to log operations.

log_output?[RW]

@return [Boolean] whether or not to log operations.

logger[RW]

@return [ActiveSupport::Logger] the logger to use.

public_manifest_path[R]

@return [Pathname] the path to manifest.json, defaults to Webpacker public manifest path.

public_path[R]

@return [Pathname] the public root path, defaults to Webpacker public root path.

Public Class Methods

new() click to toggle source
# File lib/webpacker_uploader/configuration.rb, line 28
def initialize
  @ignored_extensions = []
  @logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT))
  @log_output = true
  @public_manifest_path = ::Webpacker.config.public_manifest_path
  @public_path = ::Webpacker.config.public_path
end

Public Instance Methods

public_manifest_path=(path) click to toggle source
# File lib/webpacker_uploader/configuration.rb, line 36
def public_manifest_path=(path)
  @public_manifest_path = Pathname.new(path)
end
public_path=(path) click to toggle source
# File lib/webpacker_uploader/configuration.rb, line 40
def public_path=(path)
  @public_path = Pathname.new(path)
end