bin/nanoc in nanoc-1.4 vs bin/nanoc in nanoc-1.5
- old
+ new
@@ -67,34 +67,34 @@
when 'create_site', 'cs'
if ARGV.size != 2
$stderr.puts 'Usage: nanoc create_site [site_name]'
exit
end
- Nanoc::Creator.create_site(ARGV[1])
+ $nanoc_creator.create_site(ARGV[1])
# Create page
when 'create_page', 'cp'
if ARGV.size != 2
$stderr.puts 'Usage: nanoc create_page [page_name]'
exit
end
- Nanoc::Creator.create_page(ARGV[1], :template => unprocessed_opts['--template'])
+ $nanoc_creator.create_page(ARGV[1], :template => unprocessed_opts['--template'])
# Create template
when 'create_template', 'ct'
if ARGV.size != 2
$stderr.puts 'Usage: nanoc create_template [template_name]'
exit
end
- Nanoc::Creator.create_template(ARGV[1])
+ $nanoc_creator.create_template(ARGV[1])
# Process site and generate output
when 'compile', 'compile_site', 'co'
if ARGV.size != 1
$stderr.puts 'Usage: nanoc compile'
exit
end
- Nanoc::Compiler.new.run
+ $nanoc_compiler.run
else
puts 'Unrecognised command \'' + command + '\''
end