lib/terraspace/cli/new/stack.rb in terraspace-0.4.4 vs lib/terraspace/cli/new/stack.rb in terraspace-0.5.0
- old
+ new
@@ -3,24 +3,13 @@
component_options.each { |args| class_option(*args) }
argument :name
def create_stack
- plugin_template_source(@options[:lang], "stack") # IE: plugin_template_source("hcl", "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
-
- def create_test
- Test::Project.start(component_args(name, @options[:project_name]))
- end
-
- def run_generator_hook_script
- script = ENV['TS_GENERATOR_STACK']
- return unless script
- run_script(script, "app/stacks/#{name}")
end
end
end