Class: Terraspace::CLI::New::Plugin
- Includes:
- Helper
- Defined in:
- lib/terraspace/cli/new/plugin.rb,
lib/terraspace/cli/new/plugin/helper.rb
Defined Under Namespace
Modules: Helper
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Sequence
base_options, component_options
Class Method Details
.options ⇒ Object
5 6 7 8 9 |
# File 'lib/terraspace/cli/new/plugin.rb', line 5 def self. [ [:force, 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 |