Cuprum::Cli

A command-line utility powered by Cuprum that provides tools and utilities for defining command-line tools.

Class: Cuprum::Cli::Dependencies::SystemCommand::Mock

Parent Namespace
Cuprum::Cli::Dependencies::SystemCommand
Inherited Classes
Cuprum::Cli::Dependencies::SystemCommand > Object
Defined In
lib/cuprum/cli/dependencies/system_command/mock.rb

Table Of Contents

Overview

Mock implementation of SystemCommand for testing purposes.

Back To Top

Defined Under Namespace

Classes
MockStatus

Back To Top

Constructor

#initialize(captures: {}) => Mock

Parameters

Returns

Back To Top

Instance Attributes

#recorded_commands => Array<String> (readonly)

Returns

Back To Top

Instance Methods

#capture(command,.arguments: [], environment: {}, options: {}) => Cuprum::Result<Cuprum::Cli::Dependencies::SystemCommand::CapturedOutput>

Inherited From
Cuprum::Cli::Dependencies::SystemCommand

Executes the system command and returns the captured output.

Parameters

Returns

#spawn(command, arguments: [], enviroment:, options: {}) => Cuprum::Result<nil>

Inherited From
Cuprum::Cli::Dependencies::SystemCommand

Spawns a process to run the system command.

Parameters

Returns

Back To Top


Back to Documentation | Reference | Cuprum | Cuprum::Cli | Cuprum::Cli::Dependencies | Cuprum::Cli::Dependencies::SystemCommand