Sha256: 865024a86bcc4e812b09cafab8df51bbf908af7d4c996ac6eedfe66f154aa7ea
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
require 'vfs/storages/local' module Vos module Drivers class Local def initialize root = '' @root = root end # # Vfs # include Vfs::Storages::Local::LocalVfsHelper def open &block block.call self if block end def close; end # # 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 to_s; '' end def host; 'localhost' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vos-0.3.15 | lib/vos/drivers/local.rb |
vos-0.3.14 | lib/vos/drivers/local.rb |