Sha256: 3ffa236e24a894f0e168bec01317b3770feecf655c29d23ac2392fe9a9b65720

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require_relative "../../lib/plutonium_generators"

module Pu
  module Extra
    class ColorizedLoggerGenerator < Rails::Generators::Base
      include PlutoniumGenerators::Generator

      source_root File.expand_path("templates", __dir__)

      desc "Set up a colorized logger"

      def start
        copy_file "config/initializers/colorized_logger.rb"
      rescue => e
        exception "#{self.class} failed:", e
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
plutonium-0.15.18 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.17 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.16 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.15 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.14 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.13 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.12 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.11 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.10 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.9 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
plutonium-0.15.8 lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb