Class: R10K::Util::Subprocess::Runner Private

Inherits:
Object
  • Object
show all
Defined in:
lib/r10k/util/subprocess/runner.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Define an abstract interface for external command runners.

Direct Known Subclasses

JRuby, POSIX, Windows

Defined Under Namespace

Classes: JRuby, POSIX, Pump, Windows

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Runner

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Runner.

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/r10k/util/subprocess/runner.rb', line 19

def initialize(argv)
  raise NotImplementedError
end

Instance Attribute Details

#cwdString

Returns The directory to be used as the cwd when executing the command.

Returns:

  • (String)

    The directory to be used as the cwd when executing the command.



13
14
15
# File 'lib/r10k/util/subprocess/runner.rb', line 13

def cwd
  @cwd
end

#resultObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/r10k/util/subprocess/runner.rb', line 17

def result
  @result
end

Instance Method Details

#runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/r10k/util/subprocess/runner.rb', line 23

def run
  raise NotImplementedError
end