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.10.0 lib/power_stencil/plugins/config.rb
power_stencil-0.9.8 lib/power_stencil/plugins/config.rb
power_stencil-0.9.7 lib/power_stencil/plugins/config.rb
power_stencil-0.9.6 lib/power_stencil/plugins/config.rb
power_stencil-0.9.5 lib/power_stencil/plugins/config.rb
power_stencil-0.9.4 lib/power_stencil/plugins/config.rb
power_stencil-0.9.3 lib/power_stencil/plugins/config.rb
power_stencil-0.9.2 lib/power_stencil/plugins/config.rb
power_stencil-0.9.1 lib/power_stencil/plugins/config.rb
power_stencil-0.9.0 lib/power_stencil/plugins/config.rb
power_stencil-0.8.14 lib/power_stencil/plugins/config.rb
power_stencil-0.8.13 lib/power_stencil/plugins/config.rb
power_stencil-0.8.12 lib/power_stencil/plugins/config.rb
power_stencil-0.8.11 lib/power_stencil/plugins/config.rb
power_stencil-0.8.10 lib/power_stencil/plugins/config.rb
power_stencil-0.8.9 lib/power_stencil/plugins/config.rb
power_stencil-0.8.8 lib/power_stencil/plugins/config.rb
power_stencil-0.8.7 lib/power_stencil/plugins/config.rb
power_stencil-0.8.6 lib/power_stencil/plugins/config.rb
power_stencil-0.8.5 lib/power_stencil/plugins/config.rb