Class RVM::Shell::SingleShotWrapper
In: lib/rvm/shell/single_shot_wrapper.rb
Parent: AbstractWrapper

Implementation of the abstract wrapper class that opens a new instance of bash when a command is run, only keeping it around for the lifetime of the command. Possibly inefficient but for the moment simplest and hence default implementation.

Methods

Attributes

current  [RW] 

Public Instance methods

Runs a given command in the current shell. Defaults the command to true if empty.

Runs a command, ensuring no output is collected.

Protected Instance methods

Direct access to each of the named descriptors

yields stdio, stderr and stdin for a shell instance. If there isn‘t a current shell instance, it will create a new one. In said scenario, it will also cleanup once it is done.

[Validate]