Class: CDO_MULC_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(factor) ⇒ CDO_MULC_cmd

Returns a new instance of CDO_MULC_cmd.

[View source]

155
156
157
# File 'lib/file_command.rb', line 155

def initialize(factor)
  @factor = factor
end

Instance Method Details

#cmd_txt_outofplace(infiles, outfile) ⇒ Object

[View source]

159
160
161
162
# File 'lib/file_command.rb', line 159

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} mulc,#{@factor} #{infiles.join(' ')} #{outfile})
end