lib/nanoc/cli.rb in nanoc-3.8.0 vs lib/nanoc/cli.rb in nanoc-4.0.0a1

- old
+ new

@@ -13,10 +13,11 @@ require 'Win32/Console/ANSI' rescue LoadError end end +# @api private module Nanoc::CLI module Commands end autoload 'ANSIStringColorizer', 'nanoc/cli/ansi_string_colorizer' @@ -24,14 +25,10 @@ autoload 'CommandRunner', 'nanoc/cli/command_runner' autoload 'CleaningStream', 'nanoc/cli/cleaning_stream' autoload 'StreamCleaners', 'nanoc/cli/stream_cleaners' autoload 'ErrorHandler', 'nanoc/cli/error_handler' - # Deprecated; use CommandRunner instead - # TODO: [in nanoc 4.0] remove me - autoload 'Command', 'nanoc/cli/command_runner' - # @return [Boolean] true if debug output is enabled, false if not # # @since 3.2.0 def self.debug? @debug || false @@ -119,11 +116,11 @@ # Loads site-specific commands. # # @return [void] def self.load_custom_commands - if Nanoc::Site.cwd_is_nanoc_site? - site = Nanoc::Site.new('.') + if Nanoc::Int::Site.cwd_is_nanoc_site? + site = Nanoc::Int::Site.new('.') site.config[:commands_dirs].each do |path| load_commands_at(path) end end end