Sha256: 2b229a97ab2264d10da285398d0cddffb4977b15ead2ce0719fef1f26d3d298d

Contents?: true

Size: 665 Bytes

Versions: 5

Compression:

Stored size: 665 Bytes

Contents

require 'power_stencil/project/require_entity_definitions'

module PowerStencil
  module Plugins

    module EntityDefinitions

      def require_plugin_entity_definitions
        return unless capabilities[:entity_definitions]
        logger.info "Requiring '#{self.name}' plugin entity definitions..."
        securely_require_with_entity_class_detection(self) do
          plugin_definition[:entity_definitions].each do |entity_definition_file_path|
            securely_require entity_definition_file_path, fail_on_error: true
          end
        end

      end

      private

      include PowerStencil::Project::RequireEntityDefinition

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
power_stencil-0.10.0 lib/power_stencil/plugins/entity_definitions.rb
power_stencil-0.9.8 lib/power_stencil/plugins/entity_definitions.rb
power_stencil-0.9.7 lib/power_stencil/plugins/entity_definitions.rb
power_stencil-0.9.6 lib/power_stencil/plugins/entity_definitions.rb
power_stencil-0.9.5 lib/power_stencil/plugins/entity_definitions.rb