lib/gemsmith/builders/cli.rb in gemsmith-21.6.0 vs lib/gemsmith/builders/cli.rb in gemsmith-21.9.0

- old
+ new

@@ -3,29 +3,20 @@ require "refinements/struct" module Gemsmith module Builders # Builds project skeleton CLI templates. - class CLI + class CLI < Rubysmith::Builders::Abstract using Refinements::Struct - def self.call(...) = new(...).call - - def initialize configuration, builder: Rubysmith::Builder - @configuration = configuration - @builder = builder - end - def call return configuration unless configuration.build_cli render configuration end private - - attr_reader :configuration, :builder def render = private_methods.sort.grep(/render_/).each { |method| __send__ method } def render_exe builder.call(configuration.merge(template_path: "%project_name%/exe/%project_name%.erb"))