Sha256: 6d8c69c93879a65e0441ed469dfd364c0ca678071ee9ca80fc3da0001a828cfe
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
#!/usr/bin/ruby # # File:: processor_listing.rb # Author:: wkm # Copyright:: 2009 # License:: GPL # # Lists all the processors in SiteFuel with their file patterns # $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'sitefuel/SiteFuelRuntime' include SiteFuel SiteFuelRuntime.load_processors processors = SiteFuelRuntime.find_processors processors = processors.delete_if do |proc| proc.processor_name =~ /Abstract.*/ end processors.each do |proc| puts ' | %s | %s | %s | '% [ proc.processor_name.ljust(10), proc.file_patterns.join(', ').ljust(30), proc.processor_type.ljust(8) ] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitefuel-0.0.0b | test/processor_listing.rb |
sitefuel-0.0.0a | test/processor_listing.rb |