Sha256: 4713733aede2495a50335f31cde9f950126797914507967471fb3dd16b11cbbb

Contents?: true

Size: 841 Bytes

Versions: 34

Compression:

Stored size: 841 Bytes

Contents

module PowerStencil
  module Plugins

    module Paths

      def plugin_path
        case self.type
        when :local
          project.project_local_plugin_path self.name
        when :gem
          gem_spec.gem_dir
        end
      end

      def plugin_command_line_definition_file
        File.join plugin_path, 'etc', 'command_line.yaml'
      end

      def plugin_capabilities_definition_file
        File.join plugin_path, 'etc', 'plugin_capabilities.yaml'
      end

      def plugin_config_specific_file
        File.join plugin_path, 'etc', 'plugin_config.yaml'
      end

      def plugin_processors_dir
        File.join plugin_path, 'lib', plugin_name, 'processors'
      end

      def plugin_entities_definitions_dir
        File.join plugin_path, 'etc',  plugin_name, 'entities_definitions'
      end

    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
power_stencil-0.10.0 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.8 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.7 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.6 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.5 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.4 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.3 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.2 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.1 lib/power_stencil/plugins/paths.rb
power_stencil-0.9.0 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.14 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.13 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.12 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.11 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.10 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.9 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.8 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.7 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.6 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.5 lib/power_stencil/plugins/paths.rb