Sha256: 920c467b57a0309adf262d50f8108f87db02e643ae8ed6e2d3efede04a9f2871
Contents?: true
Size: 1.23 KB
Versions: 7
Compression:
Stored size: 1.23 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 targets = targets_from_criteria analyse_extra_params, project.engine.root_universe sorted_targets = targets.sort {|a,b| a.as_path <=> b.as_path } if config[:'invalid-only'] sorted_targets.reject! &:valid? if sorted_targets.empty? puts 'No invalid entity found in this repository.' return else puts 'Showing invalid entities only:' end end sorted_targets.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 { |entity_info| puts entity_info } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems