lib/rubysmith/extensions/pragmater.rb in rubysmith-7.3.0 vs lib/rubysmith/extensions/pragmater.rb in rubysmith-7.4.0
- old
+ new
@@ -5,11 +5,11 @@
module Rubysmith
module Extensions
# Ensures project skeleton has pragmas.
class Pragmater
- include Import[:settings]
+ include Import[:settings, :logger]
using Refinements::Pathname
CLIENT = ::Pragmater::Inserter.new(
settings: ::Pragmater::Configuration::Model[
@@ -35,9 +35,10 @@
@client = client
super(**)
end
def call
+ logger.info { "Adding frozen string literal pragmas..." }
settings.project_root.change_dir { client.call }
true
end
private