lib/nanoc/cli/command_runner.rb in nanoc-3.7.4 vs lib/nanoc/cli/command_runner.rb in nanoc-3.7.5

- old
+ new

@@ -1,18 +1,16 @@ # encoding: utf-8 module Nanoc::CLI - # A command runner subclass for nanoc commands that adds nanoc-specific # convenience methods and error handling. class CommandRunner < ::Cri::CommandRunner - # @see http://rubydoc.info/gems/cri/Cri/CommandRunner#call-instance_method # # @return [void] def call - Nanoc::CLI::ErrorHandler.handle_while(:command => self) do + Nanoc::CLI::ErrorHandler.handle_while(command: self) do run end end # Gets the site ({Nanoc::Site} instance) in the current directory and @@ -102,12 +100,10 @@ # @return [Array] The compilation stack. def stack (site && site.compiler.stack) || [] end - end # @deprecated Use {Nanoc::CLI::CommandRunner} instead Command = CommandRunner - end