Class: Terraspace::CLI::New::Sequence

Inherits:
Thor::Group
  • Object
show all
Includes:
Helpers, Util::Logging, Thor::Actions
Defined in:
lib/terraspace/cli/new/sequence.rb

Direct Known Subclasses

Ci, Module, Plugin::Ci, Plugin::Core, Project, Stack

Class Method Summary collapse

Methods included from Util::Logging

#logger

Class Method Details

.base_optionsObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/terraspace/cli/new/sequence.rb', line 9

def self.base_options
  [
    [:examples, type: :boolean, default: false, desc: "Also generate examples"],
    [:force, aliases: %w[y], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
    [:lang, default: "hcl", desc: "Language to use: HCL/ERB or Ruby DSL"],
    [:plugin, aliases: %w[p], default: "aws", desc: "Cloud Plugin. Supports: aws, google"],
    [:test, type: :boolean, desc: "Whether or not to generate tests"],
    [:plugin_gem, desc: "Use if provider gem name doesnt follow terraspace_plugin_XXX naming convention. Must specify both --plugin and --plugin-name option"],
  ]
end

.component_optionsObject



20
21
22
23
24
# File 'lib/terraspace/cli/new/sequence.rb', line 20

def self.component_options
  [
    [:project_name, desc: "Only used internally", hide: true],
  ]
end