Class: Terraspace::CLI::New::Plugin
- Includes:
- Helpers
- Defined in:
- lib/terraspace/cli/new/plugin.rb,
lib/terraspace/cli/new/plugin/helper.rb
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Sequence
base_options, component_options
Methods included from Util::Logging
Class Method Details
.options ⇒ Object
7 8 9 10 11 |
# File 'lib/terraspace/cli/new/plugin.rb', line 7 def self. [ [:force, aliases: %w[y], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end |
Instance Method Details
#create_plugin ⇒ Object
14 15 16 17 18 |
# File 'lib/terraspace/cli/new/plugin.rb', line 14 def create_plugin puts "=> Creating new plugin: #{name}" core_template_source("plugin") directory ".", "terraspace_plugin_#{name}" end |