Class: Terraspace::CLI::New::Stack
- Defined in:
- lib/terraspace/cli/new/stack.rb
Instance Method Summary collapse
Methods inherited from Sequence
base_options, component_options
Methods included from Util::Logging
Instance Method Details
#create_stack ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/terraspace/cli/new/stack.rb', line 8 def create_stack puts "=> Creating new stack called #{name}" plugin_template_source(@options[:lang], "stack") # IE: plugin_template_source("hcl", "stack") dest = "app/stacks/#{name}" dest = "#{@options[:project_name]}/#{dest}" if @options[:project_name] directory ".", dest end |