Sha256: c64a2f842e7f8349ca2598b4746d9c10f6b53dec44ad85f9bae7fc3acf44bee3

Contents?: true

Size: 1.07 KB

Versions: 36

Compression:

Stored size: 1.07 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|
            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

36 entries across 36 versions & 1 rubygems

Version Path
power_stencil-0.10.0 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.8 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.7 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.6 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.5 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.4 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.3 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.2 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.1 lib/power_stencil/command_processors/info.rb
power_stencil-0.9.0 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.14 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.13 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.12 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.11 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.10 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.9 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.8 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.7 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.6 lib/power_stencil/command_processors/info.rb
power_stencil-0.8.5 lib/power_stencil/command_processors/info.rb