Sha256: 4aad02ba80cb4192c32953f36dd43de151860d57931d47c9b58c330ffd23f285
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
module PowerStencil module Plugins module Config def plugin_config_specific_file project.plugin_config_specific_file self.name end 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.name 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
power_stencil-0.5.1 | lib/power_stencil/plugins/config.rb |
power_stencil-0.5.0 | lib/power_stencil/plugins/config.rb |