Sha256: 2accca1cf8368f1767772d4c5e20415321f967c7507f7d63c2f4c7f169b6435f

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

Contents

module PowerStencil
  module CommandProcessors

    class Check

      include Climatic::Script::UnimplementedProcessor
      include Climatic::Proxy
      include PowerStencil::Project::Proxy
      include PowerStencil::CommandProcessors::EntityHelper

      def execute
        puts 'RAW ENTITIES'
        targets = targets_from_criteria analyse_extra_params, project.engine.root_universe
        targets.sort {|a,b| a.as_path <=> b.as_path }
            .map do |entity|
          entity_info = [" '#{entity.as_path}':"]
          entity_info << "  - Storage path   : '#{entity.source_uri}'"
          entity_info << "  - Templates path : '#{entity.templates_path}'" if entity.respond_to? :templates_path
          entity_info << "  - Status         : #{entity.valid? ? 'Valid' : 'INVALID !'} "
          entity_info << "  - Buildable      : #{entity.buildable?}"
          entity_info
        end .each { |l| puts l }


        #
        # targets.map do |entity|
        #   " - '#{entity.as_path}': '#{entity.source_uri}'"
        # end .sort.each { |l| puts l }
      end


    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
power_stencil-0.4.19 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.18 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.17 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.16 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.15 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.14 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.13 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.12 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.11 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.10 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.9 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.8 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.7 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.6 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.5 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.4 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.3 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.2 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.1 lib/power_stencil/command_processors/check.rb
power_stencil-0.4.0 lib/power_stencil/command_processors/check.rb