Sha256: 07e13514f43b7594637cf03f80cb0e5044fbecc4d648680e94d2b88911bee144
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module Nanoc VERSION = '1.6.2' def self.ensure_in_site unless in_site? $stderr.puts 'ERROR: The current working directory does not seem to ' + 'be a valid/complete nanoc site directory; aborting.' unless $quiet exit end end private def self.in_site? return false unless File.directory?('content') return false unless File.directory?('layouts') return false unless File.directory?('lib') return false unless File.directory?('tasks') return false unless File.directory?('templates') return false unless File.exist?('config.yaml') return false unless File.exist?('meta.yaml') return false unless File.exist?('Rakefile') true end end require File.dirname(__FILE__) + '/nanoc/enhancements.rb' require File.dirname(__FILE__) + '/nanoc/creator.rb' require File.dirname(__FILE__) + '/nanoc/compiler.rb' $nanoc_creator = Nanoc::Creator.new $nanoc_compiler = Nanoc::Compiler.new require File.dirname(__FILE__) + '/nanoc/core_ext.rb' require File.dirname(__FILE__) + '/nanoc/filters.rb' require File.dirname(__FILE__) + '/nanoc/page.rb' require File.dirname(__FILE__) + '/nanoc/page_drop.rb' require File.dirname(__FILE__) + '/nanoc/page_proxy.rb'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.6.2 | lib/nanoc.rb |