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.2 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.1 lib/terraspace/cli/new/plugin.rb
terraspace-0.6.0 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.12 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.11 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.10 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.9 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.8 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.7 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.6 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.5 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.4 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.3 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.2 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.1 lib/terraspace/cli/new/plugin.rb
terraspace-0.5.0 lib/terraspace/cli/new/plugin.rb