Sha256: fff4c3b060b1fb9d09d3e8088540933ff268052baab6fbd5203c57ff97e6cdd4

Contents?: true

Size: 1.17 KB

Versions: 33

Compression:

Stored size: 1.17 KB

Contents

require '<%= plugin_name %>/version'
require '<%= plugin_name %>/plugin_helper'
require '<%= plugin_name %>/<%= plugin_name %>_processor'

module <%= plugin_module_name %>

  extend PowerStencil::Utils::SecureRequire
  extend <%= plugin_module_name %>::PluginHelper

  REQUIRED_PLUGINS = []

  def self.setup_processors
    clm = PowerStencil.command_line_manager
    clm.register_processor clm.command_by_alias('<%= main_entry_point %>'), <%= plugin_module_name %>::Processor.new
  end

  def self.setup_entity_definitions
    PowerStencil.logger.info 'Setting up <%= main_entry_point %> plugin entities'
    securely_require '<%= plugin_name %>/entity_definitions/<%= plugin_name %>_entity', fail_on_error: true
  end

  def self.setup_plugin_templates
    Dir.entries(plugin_templates_path).reject { |e| %w(. ..).include? e }.each do |entry|
      template_path = File.join(plugin_templates_path, entry)
      if Dir.exist? template_path
        PowerStencil.project.register_template_path_for_type entry.to_sym, template_path
      end
    end
  end

end

# All plugins have to be in the PowerStencil::Plugin namespace !
PowerStencil::Plugin::<%= plugin_module_name %> = <%= plugin_module_name %>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
power_stencil-0.4.22 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.21 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.20 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.19 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.18 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.17 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.16 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.15 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.14 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.13 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.12 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.11 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.10 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.9 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.8 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.7 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.6 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.5 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.4 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb
power_stencil-0.4.3 etc/meta_templates/plugin_seed/lib/{entity}.rb.erb