Class: Ufo::CLI::New::BootHook

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::Logging

#logger

Class Method Details

.cli_optionsObject



3
4
5
6
7
# File 'lib/ufo/cli/new/boot_hook.rb', line 3

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

Instance Method Details

#create_helperObject



16
17
18
19
# File 'lib/ufo/cli/new/boot_hook.rb', line 16

def create_helper
  logger.info "=> Creating boot_hook"
  directory ".", "."
end

#set_sourceObject



12
13
14
# File 'lib/ufo/cli/new/boot_hook.rb', line 12

def set_source
  set_template_source "boot_hook"
end