Class: Ufo::CLI::New::EnvFile

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::Logging

#logger

Class Method Details

.cli_optionsObject



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

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

Instance Method Details

#create_hookObject



13
14
15
16
# File 'lib/ufo/cli/new/env_file.rb', line 13

def create_hook
  set_template_source("env_file")
  template "file.#{type}", ".ufo/env_files/#{Ufo.env}.#{type}"
end