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

Version Path
ufo-6.3.8 lib/ufo/cli/new/env_file.rb
ufo-6.3.7 lib/ufo/cli/new/env_file.rb
ufo-6.3.6 lib/ufo/cli/new/env_file.rb
ufo-6.3.5 lib/ufo/cli/new/env_file.rb
ufo-6.3.4 lib/ufo/cli/new/env_file.rb
ufo-6.3.3 lib/ufo/cli/new/env_file.rb
ufo-6.3.2 lib/ufo/cli/new/env_file.rb