Cuprum::Cli

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

Class: Cuprum::Cli::Integrations::Thor::Task

Parent Namespace
Cuprum::Cli::Integrations::Thor
Inherited Classes
Thor > Object
Extended Modules
SleepingKingStudios::Tools::Toolbox::Subclass
Defined In
lib/cuprum/cli/integrations/thor/task.rb

Table Of Contents

Overview

Thor task wrapping a Cuprum::Cli command.

Back To Top

Defined Under Namespace

Classes
Builder

Back To Top

Class Methods

.exit_on_failure? => true

Ensures that the task exists with a non-zero status code on a failure.

Returns

Back To Top

Constructor

#initialize(command_class, arguments = [], options = {}, config = {}) => Object

Overloads

#initialize(command_class, arguments = [], options = {}, config = {}) => Object
Parameters
  • command_class (Class) — the command to execute.
  • arguments (Array) — the arguments passed by the Thor runtime.
  • options (Hash) — the options passed by the Thor runtime.
  • config (Hash) — additional configuration passed by the Thor runtime.

Returns

Back To Top

Instance Attributes

#command_class => Class (readonly)

Returns

Back To Top

Instance Methods

Back To Top


Back to Documentation | Reference | Cuprum | Cuprum::Cli | Cuprum::Cli::Integrations | Cuprum::Cli::Integrations::Thor