Method: Train::File::Remote::Windows#content
- Defined in:
- lib/train/file/remote/windows.rb
#content ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/train/file/remote/windows.rb', line 20 def content return @content if defined?(@content) @content = @backend.run_command("Get-Content(\"#{@spath}\") | Out-String").stdout return @content unless @content.empty? @content = nil if directory? # or size.nil? or size > 0 @content end |