lib/nanoc/cli/command_runner.rb in nanoc-4.0.0rc1 vs lib/nanoc/cli/command_runner.rb in nanoc-4.0.0rc2
- old
+ new
@@ -1,7 +1,7 @@
module Nanoc::CLI
- # A command runner subclass for nanoc commands that adds nanoc-specific
+ # A command runner subclass for Nanoc commands that adds Nanoc-specific
# convenience methods and error handling.
#
# @api private
class CommandRunner < ::Cri::CommandRunner
# @see http://rubydoc.info/gems/cri/Cri/CommandRunner#call-instance_method
@@ -32,11 +32,11 @@
# @api private
def site=(new_site)
@site = new_site
end
- # @return [Boolean] true if the current working directory is a nanoc site
+ # @return [Boolean] true if the current working directory is a Nanoc site
# directory, false otherwise
def in_site_dir?
Nanoc::Int::SiteLoader.cwd_is_nanoc_site?
end
alias_method :is_in_site_dir?, :in_site_dir?
@@ -46,10 +46,10 @@
# message and exits.
#
# @return [void]
def require_site
if site.nil?
- raise ::Nanoc::Int::Errors::GenericTrivial, 'The current working directory does not seem to be a nanoc site.'
+ raise ::Nanoc::Int::Errors::GenericTrivial, 'The current working directory does not seem to be a Nanoc site.'
end
end
# Asserts that the current working directory contains a site (just like
# {#require_site}) and loads the site into memory.