Cuprum::Cli

A command-line utility powered by Cuprum that provides tools and utilities for defining command-line tools.

Module: Cuprum::Cli::Commands::File::Templates

Parent Namespace
Cuprum::Cli::Commands::File
Defined In
lib/cuprum/cli/commands/file/templates.rb

Table Of Contents

Overview

Namespace for defining templates for generated files.

Back To Top

Constants

DEFAULT_TEMPLATES

= [ { name: 'RSpec File', pattern: RSPEC_PATTERN, templates: { file_path: '%s%s%s_spec.rb', template: File.join(TEMPLATES_PATH, 'rspec.rb.erb'), types: %i[ruby rspec spec test] } }, { name: 'Ruby File (With Spec)', pattern: RUBY_PATTERN, templates: [ { file_path: '%s%s%s.rb', template: File.join(TEMPLATES_PATH, 'ruby.rb.erb'), type: :ruby }, { file_path: 'spec/%s%s_spec.rb', template: File.join(TEMPLATES_PATH, 'rspec.rb.erb'), types: %i[ruby rspec spec test] } ] } ].then do |ary| SleepingKingStudios::Tools::Toolbelt.instance.array_tools.deep_freeze(ary) end</code></span>

Default templates used to generate Ruby and RSpec files.

Back To Top


Back to Documentation | Reference | Cuprum | Cuprum::Cli | Cuprum::Cli::Commands | Cuprum::Cli::Commands::File