Sha256: 2501092dda7eac2d0bad10fa118237c5165bb458ec9d8d0d54db22a1e11d6245
Contents?: true
Size: 474 Bytes
Versions: 36
Compression:
Stored size: 474 Bytes
Contents
class Terraspace::CLI::New class Plugin < Sequence include Helpers 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") directory ".", "terraspace_plugin_#{name}" end end end
Version data entries
36 entries across 36 versions & 1 rubygems