Sha256: 92ad12f2c76fc3240a53de89e75990f6abc174161d0f98c227394ca099f6b389
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
require 'open3' require 'fileutils' require 'vfs/drivers/local' module Vos module Drivers class Local < Vfs::Drivers::Local attr_accessor :box # # Shell # def exec command code, stdout, stderr = Open3.popen3 command do |stdin, stdout, stderr, waitth| [waitth.value.to_i, stdout.read, stderr.read] end return code, stdout, stderr end def bash command code, stdout_and_stderr = Open3.popen2e command do |stdin, stdout_and_stderr, wait_thread| [wait_thread.value.to_i, stdout_and_stderr.read] end return code, stdout_and_stderr end # # Other # def host; 'localhost' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vos-0.4.2 | lib/vos/drivers/local.rb |
vos-0.4.1 | lib/vos/drivers/local.rb |
vos-0.4.0 | lib/vos/drivers/local.rb |