Module: Cuprum::Cli::Dependencies

Defined in:
lib/cuprum/cli/dependencies.rb,
lib/cuprum/cli/dependencies/file_system.rb,
lib/cuprum/cli/dependencies/standard_io.rb,
lib/cuprum/cli/dependencies/system_command.rb,
lib/cuprum/cli/dependencies/file_system/mock.rb,
lib/cuprum/cli/dependencies/standard_io/mock.rb,
lib/cuprum/cli/dependencies/standard_io/helpers.rb,
lib/cuprum/cli/dependencies/system_command/mock.rb

Overview

Dependencies provide standard functionality to commands.

Defined Under Namespace

Classes: FileSystem, StandardIo, SystemCommand

Class Method Summary collapse

Class Method Details

.providerPlumbum::Provider

Returns the provider for the standard dependencies.

Returns:

  • (Plumbum::Provider)

    the provider for the standard dependencies.



15
16
17
18
19
20
21
22
23
# File 'lib/cuprum/cli/dependencies.rb', line 15

def self.provider
  @provider ||= Plumbum::ManyProvider.new(
    values: {
      file_system:    FileSystem.new,
      standard_io:    StandardIo.new,
      system_command: SystemCommand.new
    }
  )
end