Sha256: c682bd30f80f430dc92c4bc19daab41378e7a140c88b2ca91e342f974b2a492e
Contents?: true
Size: 758 Bytes
Versions: 17
Compression:
Stored size: 758 Bytes
Contents
module Jekyll class Command def self.globs(source, destination) Dir.chdir(source) do dirs = Dir['*'].select { |x| File.directory?(x) } dirs -= [destination, File.expand_path(destination), File.basename(destination)] dirs = dirs.map { |x| "#{x}/**/*" } dirs += ['*'] end end # Static: Run Site#process and catch errors # # site - the Jekyll::Site object # # Returns nothing def self.process_site(site) site.process rescue Jekyll::FatalException => e puts Jekyll.logger.error "ERROR:", "YOUR SITE COULD NOT BE BUILT:" Jekyll.logger.error "", "------------------------------------" Jekyll.logger.error "", e.message exit(1) end end end
Version data entries
17 entries across 17 versions & 2 rubygems