Class: Ufo::CLI::New::Helper
- Defined in:
- lib/ufo/cli/new/helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Utils::Logging
Class Method Details
.cli_options ⇒ Object
6 7 8 9 10 |
# File 'lib/ufo/cli/new/helper.rb', line 6 def self. [ [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end |
Instance Method Details
#create_helper ⇒ Object
19 20 21 22 |
# File 'lib/ufo/cli/new/helper.rb', line 19 def create_helper logger.info "=> Creating #{name}_helper.rb" directory ".", ".ufo/helpers" end |
#set_source ⇒ Object
15 16 17 |
# File 'lib/ufo/cli/new/helper.rb', line 15 def set_source set_template_source "helper" end |