Class | Nanoc::CLI::CommandRunner |
In: |
lib/nanoc/cli/command_runner.rb
|
Parent: | ::Cri::CommandRunner |
A command runner subclass for nanoc commands that adds nanoc-specific convenience methods and error handling.
@deprecated use `Cri::CommandDSL#runner`
@see rubydoc.info/gems/cri/Cri/CommandDSL#runner-instance_method
@return [Boolean] true if the current working directory is a nanoc site
directory, false otherwise
Asserts that the current working directory contains a site (just like {require_site}) and loads the site into memory.
@return [void]
Asserts that the current working directory contains a site ({Nanoc::Site} instance). If no site is present, prints an error message and exits.
@return [void]
Gets the site ({Nanoc::Site} instance) in the current directory and loads its data.
@return [Nanoc::Site] The site in the current working directory