lib/cri/command_runner.rb in cri-2.6.1 vs lib/cri/command_runner.rb in cri-2.7.0

- old
+ new

@@ -1,13 +1,11 @@ # encoding: utf-8 module Cri - # A command runner is responsible for the execution of a command. Using it # is optional, but it is useful for commands whose execution block is large. class CommandRunner - # @return [Hash] A hash contain the options and their values attr_reader :options # @return [Array] The list of arguments attr_reader :arguments @@ -31,20 +29,18 @@ # Runs the command. By default, this simply does the actual execution, but # subclasses may choose to add error handling around the actual execution. # # @return [void] def call - self.run + run end # Performs the actual execution of the command. # # @return [void] # # @abstract def run - raise NotImplementedError, 'Cri::CommandRunner subclasses must implement #run' + fail NotImplementedError, 'Cri::CommandRunner subclasses must implement #run' end - end - end