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.8.4 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.3 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.2 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.1 lib/power_stencil/plugins/paths.rb
power_stencil-0.8.0 lib/power_stencil/plugins/paths.rb
power_stencil-0.7.4 lib/power_stencil/plugins/paths.rb
power_stencil-0.7.3 lib/power_stencil/plugins/paths.rb
power_stencil-0.7.2 lib/power_stencil/plugins/paths.rb
power_stencil-0.7.1 lib/power_stencil/plugins/paths.rb
power_stencil-0.7.0 lib/power_stencil/plugins/paths.rb
power_stencil-0.6.3 lib/power_stencil/plugins/paths.rb
power_stencil-0.6.2 lib/power_stencil/plugins/paths.rb
power_stencil-0.6.1 lib/power_stencil/plugins/paths.rb
power_stencil-0.6.0 lib/power_stencil/plugins/paths.rb