Sha256: 3ab3d9a0c65e499d46b38ffd53c49dcc252f54b07af1dc70f25e14a95cd2f08d

Contents?: true

Size: 463 Bytes

Versions: 48

Compression:

Stored size: 463 Bytes

Contents

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

    argument :name

    def create_module
      puts "=> Creating new module called #{name}"
      plugin_template_source(@options[:lang], "module") # IE: plugin_template_source("hcl", "module")
      dest = "app/modules/#{name}"
      dest = "#{@options[:project_name]}/#{dest}" if @options[:project_name]
      directory ".", dest
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cli/new/module.rb
terraspace-2.2.16 lib/terraspace/cli/new/module.rb
terraspace-2.2.15 lib/terraspace/cli/new/module.rb
terraspace-2.2.14 lib/terraspace/cli/new/module.rb
terraspace-2.2.13 lib/terraspace/cli/new/module.rb
terraspace-2.2.12 lib/terraspace/cli/new/module.rb
terraspace-2.2.11 lib/terraspace/cli/new/module.rb
terraspace-2.2.10 lib/terraspace/cli/new/module.rb
terraspace-2.2.9 lib/terraspace/cli/new/module.rb
terraspace-2.2.8 lib/terraspace/cli/new/module.rb
terraspace-2.2.7 lib/terraspace/cli/new/module.rb
terraspace-2.2.6 lib/terraspace/cli/new/module.rb
terraspace-2.2.5 lib/terraspace/cli/new/module.rb
terraspace-2.2.4 lib/terraspace/cli/new/module.rb
terraspace-2.2.3 lib/terraspace/cli/new/module.rb
terraspace-2.2.2 lib/terraspace/cli/new/module.rb
terraspace-2.2.1 lib/terraspace/cli/new/module.rb
terraspace-2.2.0 lib/terraspace/cli/new/module.rb
terraspace-2.1.7 lib/terraspace/cli/new/module.rb
terraspace-2.1.6 lib/terraspace/cli/new/module.rb