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
Gets the site ({Nanoc::Site} instance) in the current directory and loads its data.
@return [Nanoc::Site] The site in the current working directory
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]