Class: RailsAssetslessContainer::Strategy::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_assetsless_container/strategy/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ Log

Returns a new instance of Log.



8
9
10
# File 'lib/rails_assetsless_container/strategy/log.rb', line 8

def initialize(logger)
  @logger = logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



6
7
8
# File 'lib/rails_assetsless_container/strategy/log.rb', line 6

def logger
  @logger
end

Instance Method Details

#after_sprockets(path) ⇒ Object



12
13
14
# File 'lib/rails_assetsless_container/strategy/log.rb', line 12

def after_sprockets(path)
  logger.info("after_sprockets: #{path}")
end

#after_webpacker(path) ⇒ Object



16
17
18
# File 'lib/rails_assetsless_container/strategy/log.rb', line 16

def after_webpacker(path)
  logger.info("after_webpacker: #{path}")
end

#write_sprockets_manifest(path) ⇒ Object



20
21
22
# File 'lib/rails_assetsless_container/strategy/log.rb', line 20

def write_sprockets_manifest(path)
  logger.info("write_sprockets_manifest: #{path}")
end

#write_webpacker_manifest(path) ⇒ Object



24
25
26
# File 'lib/rails_assetsless_container/strategy/log.rb', line 24

def write_webpacker_manifest(path)
  logger.info("write_webpacker_manifest: #{path}")
end