Module: Cuprum::Cli

Defined in:
lib/cuprum/cli.rb,
lib/cuprum/cli/rspec.rb,
lib/cuprum/cli/errors.rb,
lib/cuprum/cli/option.rb,
lib/cuprum/cli/command.rb,
lib/cuprum/cli/options.rb,
lib/cuprum/cli/version.rb,
lib/cuprum/cli/argument.rb,
lib/cuprum/cli/coercion.rb,
lib/cuprum/cli/commands.rb,
lib/cuprum/cli/metadata.rb,
lib/cuprum/cli/registry.rb,
lib/cuprum/cli/arguments.rb,
lib/cuprum/cli/dependencies.rb,
lib/cuprum/cli/integrations.rb

Overview

rubocop:disable Metrics/ModuleLength

Defined Under Namespace

Modules: Arguments, Coercion, Commands, Dependencies, Errors, Integrations, Metadata, Options, RSpec, Version Classes: Argument, Command, Option, Registry

Constant Summary collapse

VERSION =

Returns the current version of the gem.

Returns:

  • (String)

    the current version of the gem.

Version.to_gem_version

Class Method Summary collapse

Class Method Details

.gem_pathString

Returns the absolute path to the gem directory.

Returns:

  • (String)

    the absolute path to the gem directory.



29
30
31
32
33
34
# File 'lib/cuprum/cli.rb', line 29

def self.gem_path
  sep     = File::SEPARATOR
  pattern = /#{sep}lib#{sep}cuprum#{sep}?\z/

  __dir__.sub(pattern, '')
end

.initializerSleepingKingStudios::Tools::Toolbox::Initializer

Returns the initializer for the module.

Returns:

  • (SleepingKingStudios::Tools::Toolbox::Initializer)

    the initializer for the module.



38
39
40
# File 'lib/cuprum/cli.rb', line 38

def self.initializer
  @initializer
end

.versionString

Returns the current version of the gem.

Returns:

  • (String)

    the current version of the gem.



43
44
45
# File 'lib/cuprum/cli.rb', line 43

def self.version
  Cuprum::Cli::VERSION
end