Method: Train::File::Remote::Unix#content
- Defined in:
- lib/train/file/remote/unix.rb
#content ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/train/file/remote/unix.rb', line 15 def content @content ||= if !exist? || directory? nil elsif size.nil? || size.zero? '' else @backend.run_command("cat #{@spath}").stdout || '' end end |