Sha256: b3ac1e1f60be685e427e60ffa30d84e8e1f1e040c8e5f7fc91ab761ab11bd922
Contents?: true
Size: 761 Bytes
Versions: 4
Compression:
Stored size: 761 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jekyll-1.0.2 | lib/jekyll/command.rb |
jekyll-1.0.1 | lib/jekyll/command.rb |
jekyll-1.0.0 | lib/jekyll/command.rb |
jekyll-1.0.0.rc1 | lib/jekyll/command.rb |