Class R10K::Action::CriRunner
In: lib/r10k/action/cri_runner.rb
Parent: Object

Adapt the Cri runner interface to the R10K::Action::Runner interface

This class provides the necessary glue to translate behavior specific to Cri and the CLI component in general to the interface agnostic runner class.

@api private

Methods

call   handle_argv   handle_opts   new   new   wrap  

Public Class methods

Public Instance methods

Invoke the wrapped behavior, determine if it succeeded, and exit with the resulting exit code.

@return [Array] The adapted arguments for the runner

@return [Hash] The adapted options for the runner

Intercept any instatiations of klass

Defining new allows this object to proxy method calls on the wrapped runner and decorate various methods. Doing so allows this class to manage CLI specific behaviors and isolate the underlying code from having to deal with those particularities

@param opts [Hash] @param argv [Array<String>] @param _cmd [Cri::Command] The command that was invoked. This value

  is not used and is only present to adapt the Cri interface to r10k.

@return [self]

[Validate]