lib/gemsmith/builders/cli.rb in gemsmith-17.0.1 vs lib/gemsmith/builders/cli.rb in gemsmith-18.0.0

- old
+ new

@@ -45,23 +45,31 @@ loader.setup end CONTENT end - def render_library + def render_configuration [ - "%project_name%/lib/%project_path%/cli/actions/config.rb.erb", - "%project_name%/lib/%project_path%/cli/parser.rb.erb", - "%project_name%/lib/%project_path%/cli/parsers/core.rb.erb", - "%project_name%/lib/%project_path%/cli/shell.rb.erb", "%project_name%/lib/%project_path%/configuration/content.rb.erb", "%project_name%/lib/%project_path%/configuration/defaults.yml.erb", "%project_name%/lib/%project_path%/configuration/loader.rb.erb", - "%project_name%/lib/%project_path%/container.rb.erb" + "%project_name%/lib/%project_path%/container.rb.erb", + "%project_name%/lib/%project_path%/import.rb.erb" ].each { |path| builder.call(configuration.merge(template_path: path)).render } end + def render_cli + [ + "%project_name%/lib/%project_path%/cli/actions/config.rb.erb", + "%project_name%/lib/%project_path%/cli/actions/container.rb.erb", + "%project_name%/lib/%project_path%/cli/actions/import.rb.erb", + "%project_name%/lib/%project_path%/cli/parser.rb.erb", + "%project_name%/lib/%project_path%/cli/parsers/core.rb.erb", + "%project_name%/lib/%project_path%/cli/shell.rb.erb" + ].each { |path| builder.call(configuration.merge(template_path: path)).render } + end + def render_specs return unless configuration.build_rspec [ "%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb", @@ -75,10 +83,10 @@ def render_rspec_support return unless configuration.build_rspec [ - "%project_name%/spec/support/shared_contexts/application_container.rb.erb", + "%project_name%/spec/support/shared_contexts/application_dependencies.rb.erb", "%project_name%/spec/support/shared_examples/a_parser.rb.erb" ].each { |path| builder.call(configuration.merge(template_path: path)).render } end end end