Sha256: 975dec35cae3b0dac1b04ebe84afed13dcb8c99f30c054d901d13c337c340156
Contents?: true
Size: 925 Bytes
Versions: 3
Compression:
Stored size: 925 Bytes
Contents
require 'vfs/storages/local' module Vos module Drivers class Local < Abstract # # Vfs # include Vfs::Storages::Local::LocalVfsHelper def open &block block.call self if block end alias_method :open_fs, :open 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vos-0.1.3 | lib/vos/drivers/local.rb |
vos-0.1.2 | lib/vos/drivers/local.rb |
vos-0.1.1 | lib/vos/drivers/local.rb |