Sha256: 36dadc457d4e028290bc421de769238051d2ee60c898dafbd432e12394009a9b
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
class Lono::CLI::New::Helper class Project < Lono::CLI::New::Sequence def self.cli_options # required for name => underscore_name => app/blueprints/demo/helpers/%underscore_name%_helper.rb.tt argument :name, default: "custom", desc: "Helper name" [ [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end cli_options.each do |args| class_option(*args) end def set_source set_template_source "helper" end def create_blueprint logger.info "=> Generating #{underscore_name}_helper.rb" directory ".", "app/helpers/#{underscore_name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lono-8.0.0.pre.rc3 | lib/lono/cli/new/helper/project.rb |