Sha256: 3b40318664d8829652f2dabc3dbd0c3e5e848760d148fed6b1188709b443d47a
Contents?: true
Size: 577 Bytes
Versions: 30
Compression:
Stored size: 577 Bytes
Contents
class Terraspace::CLI::New::Plugin class Core < Terraspace::CLI::New::Sequence include Helper argument :name def self.options [ [:force, aliases: %w[y], type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"], ] end options.each { |args| class_option(*args) } def create_plugin puts "=> Creating new plugin: #{name}" core_template_source("plugin/core") directory ".", "terraspace_plugin_#{name}" end private def gem_name "terraspace_plugin_#{name}" end end end
Version data entries
30 entries across 30 versions & 1 rubygems