Class: Terraspace::CLI::New::Stack

Inherits:
Sequence
  • Object
show all
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

#logger

Instance Method Details

#create_stackObject



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