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

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