Class: Ufo::CLI::New::Helper

Inherits:
Sequence
  • Object
show all
Defined in:
lib/ufo/cli/new/helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::Logging

#logger

Class Method Details

.cli_optionsObject



6
7
8
9
10
# File 'lib/ufo/cli/new/helper.rb', line 6

def self.cli_options
  [
    [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
  ]
end

Instance Method Details

#create_helperObject



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_sourceObject



15
16
17
# File 'lib/ufo/cli/new/helper.rb', line 15

def set_source
  set_template_source "helper"
end