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

Version Path
terraspace-0.6.23 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.22 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.21 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.20 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.19 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.18 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.17 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.16 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.15 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.13 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.12 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.11 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.10 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.9 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.8 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.7 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.6 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.5 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.4 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.3 lib/terraspace/cli/new/plugin.rb