class PowerStencil::CommandProcessors::Info
Public Instance Methods
execute()
click to toggle source
# File lib/power_stencil/command_processors/info.rb, line 10 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| 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