Sha256: 8579a2f5f0bab949c9b044572cd65c87fb372bf8af7a07327b95fe6d5e404044

Contents?: true

Size: 458 Bytes

Versions: 36

Compression:

Stored size: 458 Bytes

Contents

class Terraspace::CLI::New
  class Stack < Sequence
    component_options.each { |args| class_option(*args) }

    argument :name

    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
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
terraspace-0.6.23 lib/terraspace/cli/new/stack.rb
terraspace-0.6.22 lib/terraspace/cli/new/stack.rb
terraspace-0.6.21 lib/terraspace/cli/new/stack.rb
terraspace-0.6.20 lib/terraspace/cli/new/stack.rb
terraspace-0.6.19 lib/terraspace/cli/new/stack.rb
terraspace-0.6.18 lib/terraspace/cli/new/stack.rb
terraspace-0.6.17 lib/terraspace/cli/new/stack.rb
terraspace-0.6.16 lib/terraspace/cli/new/stack.rb
terraspace-0.6.15 lib/terraspace/cli/new/stack.rb
terraspace-0.6.13 lib/terraspace/cli/new/stack.rb
terraspace-0.6.12 lib/terraspace/cli/new/stack.rb
terraspace-0.6.11 lib/terraspace/cli/new/stack.rb
terraspace-0.6.10 lib/terraspace/cli/new/stack.rb
terraspace-0.6.9 lib/terraspace/cli/new/stack.rb
terraspace-0.6.8 lib/terraspace/cli/new/stack.rb
terraspace-0.6.7 lib/terraspace/cli/new/stack.rb
terraspace-0.6.6 lib/terraspace/cli/new/stack.rb
terraspace-0.6.5 lib/terraspace/cli/new/stack.rb
terraspace-0.6.4 lib/terraspace/cli/new/stack.rb
terraspace-0.6.3 lib/terraspace/cli/new/stack.rb