Class: CDO_SUBC_cmd

Inherits:
CDO_cmd show all
Defined in:
lib/file_command.rb

Instance Method Summary collapse

Methods inherited from CDO_cmd

#command_success?

Methods inherited from OutofplaceCommand

#cmd_txt, #inplace?

Methods inherited from FileCommand

#run

Constructor Details

#initialize(subtrahend) ⇒ CDO_SUBC_cmd

Returns a new instance of CDO_SUBC_cmd.



167
168
169
# File 'lib/file_command.rb', line 167

def initialize(subtrahend)
  @subtrahend = subtrahend
end

Instance Method Details

#cmd_txt_outofplace(infiles, outfile) ⇒ Object



171
172
173
174
# File 'lib/file_command.rb', line 171

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::CDO} subc,#{@subtrahend} #{infiles.join(' ')} #{outfile})
end