Class: NCCOPY_COMPRESS_cmd

Inherits:
OutofplaceCommand show all
Includes:
NCO_warning_filter
Defined in:
lib/file_command.rb

Instance Method Summary collapse

Methods included from NCO_warning_filter

#command_success?

Methods inherited from OutofplaceCommand

#cmd_txt, #inplace?

Methods inherited from FileCommand

#run

Instance Method Details

#cmd_txt_outofplace(infiles, outfile) โ‡’ Object

[View source]

103
104
105
106
# File 'lib/file_command.rb', line 103

def cmd_txt_outofplace(infiles, outfile)
  raise "can handle only 1 file in #{self.class} but got #{infiles.size} #{infiles.inspect}" if infiles.size != 1
  %Q(#{SYSTEM_COMMANDS::NCCOPY} -k enhanced-nc3 -d 1 -s #{infiles[0]} #{outfile})
end