Sha256: 3c469aac24b6a823f6f84a9753da096bb15be3ea793ab3ba6e99d1bfd0e85d09

Contents?: true

Size: 647 Bytes

Versions: 34

Compression:

Stored size: 647 Bytes

Contents

module PowerStencil
  module Plugins

    module Config

      private

      def load_plugin_specific_config
        yaml_file = plugin_config_specific_file
        if File.exists? yaml_file and File.file? yaml_file and File.readable? yaml_file
          logger.info "Found plugin specific configĀ in plugin '#{self.name}'. Attempting to load..."
          project.add_plugin_config self
          capabilities[:config] = true
        end
      rescue => e
        logger.debug PowerStencil::Error.report_error(e)
        logger.error "Could not load yaml file '#{yaml_file}' because '#{e.message}'"
        raise e
      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/config.rb
power_stencil-0.8.3 lib/power_stencil/plugins/config.rb
power_stencil-0.8.2 lib/power_stencil/plugins/config.rb
power_stencil-0.8.1 lib/power_stencil/plugins/config.rb
power_stencil-0.8.0 lib/power_stencil/plugins/config.rb
power_stencil-0.7.4 lib/power_stencil/plugins/config.rb
power_stencil-0.7.3 lib/power_stencil/plugins/config.rb
power_stencil-0.7.2 lib/power_stencil/plugins/config.rb
power_stencil-0.7.1 lib/power_stencil/plugins/config.rb
power_stencil-0.7.0 lib/power_stencil/plugins/config.rb
power_stencil-0.6.3 lib/power_stencil/plugins/config.rb
power_stencil-0.6.2 lib/power_stencil/plugins/config.rb
power_stencil-0.6.1 lib/power_stencil/plugins/config.rb
power_stencil-0.6.0 lib/power_stencil/plugins/config.rb