Sha256: bf00d90bf246136388010e47394b3bc29ee7fdd4c40b35e3937628bd66fbd898
Contents?: true
Size: 1.29 KB
Versions: 33
Compression:
Stored size: 1.29 KB
Contents
module PowerStencil module CommandProcessors class Info include Climatic::Script::UnimplementedProcessor include Climatic::Proxy include PowerStencil::Project::Proxy def execute puts '-' * 80 puts 'PROJECT REPORT' puts '-' * 80 puts ' General information:' puts(project.general_report.map { |p| ' - %s' % [p] }) puts '-' * 80 puts ' Paths:' puts(project.paths_report.map { |p| ' - %s' % [p] }) unless project.plugins.empty? puts '-' * 80 puts ' Plugins:' project.plugins.each do |plugin_name, plugin| if plugin.has_dependencies? puts " --> Plugin '#{plugin_name}' depends on plugin#{plugin.declared_dependencies.size > 1 ? 's' : ''}: '#{plugin.declared_dependencies.join ', '}'" end puts " --> Plugin '#{plugin_name}' has following capabilities:" puts(project.plugin_report(plugin_name, plugin).map { |p| ' - %s' % [p] }) end end puts '-' * 80 puts ' Entities:' puts(project.entities_report.map { |p| ' - %s' % [p] }) puts '-' * 80 puts ' Available entity types:' puts(project.entity_types_report.map { |p| ' - %s' % [p] }) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems