Sha256: 31e41d6ad03ee6bb05c9ac26ff63aa0e14c4f8a88c2ee5455359fd0b34c6a970

Contents?: true

Size: 381 Bytes

Versions: 69

Compression:

Stored size: 381 Bytes

Contents

module RVM
  class Shell
    attr_reader :errors, :output

    def initialize(command)
      @command = (command =~ /^rvm /) ? command : "rvm #{command}"
      Open4::popen4("/bin/bash -l -c '#{@command.tr("'","\\'")}'") do |pid, stdin, stdout, stderr|
        stdin.close
        @output = stdout.readlines.join
        @errors = stderr.readlines.join
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
rvm-0.1.41 lib/rvm/shell.rb
rvm-0.1.40 lib/rvm/shell.rb
rvm-0.1.39 lib/rvm/shell.rb
rvm-0.1.38 lib/rvm/shell.rb
rvm-0.1.37 lib/rvm/shell.rb
rvm-0.1.36 lib/rvm/shell.rb
rvm-0.1.35 lib/rvm/shell.rb
rvm-0.1.34 lib/rvm/shell.rb
rvm-0.1.33 lib/rvm/shell.rb
rvm-0.1.32 lib/rvm/shell.rb
rvm-0.1.31 lib/rvm/shell.rb
rvm-0.1.30 lib/rvm/shell.rb
rvm-0.1.29 lib/rvm/shell.rb
rvm-0.1.27 lib/rvm/shell.rb
rvm-0.1.26 lib/rvm/shell.rb
rvm-0.1.24 lib/rvm/shell.rb
rvm-0.1.23 lib/rvm/shell.rb
rvm-0.1.22 lib/rvm/shell.rb
rvm-0.1.21 lib/rvm/shell.rb
rvm-0.1.20 lib/rvm/shell.rb