Sha256: e88e5ccebff269574e30be3c58d21f3ce8a5c44e11316be6c555f13b64deec20
Contents?: true
Size: 530 Bytes
Versions: 7
Compression:
Stored size: 530 Bytes
Contents
class Ufo::CLI::New class EnvFile < Sequence argument :type, default: "env", description: "IE: env or secrets" # description doesnt really show up def self.cli_options [ [:force, aliases: ["y"], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end cli_options.each { |args| class_option(*args) } public def create_hook set_template_source("env_file") template "file.#{type}", ".ufo/config/env_files/#{Ufo.env}.#{type}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems