Class: Terraspace::CLI::New::Helper
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Terraspace::CLI::New::Helper
- Includes:
- Thor::Actions
- Defined in:
- lib/terraspace/cli/new/helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.options ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/terraspace/cli/new/helper.rb', line 7 def self. [ [:force, aliases: %w[y], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], [:name, desc: "Helper name used for the filename. Defaults to the project, module or stack name"], [:type, default: "project", desc: "project, stack or module"], ] end |
.source_root ⇒ Object
16 17 18 |
# File 'lib/terraspace/cli/new/helper.rb', line 16 def self.source_root File.("../../../templates/base/helper", __dir__) end |
Instance Method Details
#create ⇒ Object
50 51 52 |
# File 'lib/terraspace/cli/new/helper.rb', line 50 def create directory ".", dest end |