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