Class: NCATTED_SET_VARIABLE_STANDARD_NAME_cmd

Inherits:
InplaceCommand 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 InplaceCommand

#cmd_txt, #inplace?

Methods inherited from FileCommand

#run

Constructor Details

#initialize(var_name, standard_name) ⇒ NCATTED_SET_VARIABLE_STANDARD_NAME_cmd

Returns a new instance of NCATTED_SET_VARIABLE_STANDARD_NAME_cmd.

[View source]

294
295
296
# File 'lib/file_command.rb', line 294

def initialize(var_name, standard_name)
  @var_name, @standard_name = var_name, standard_name
end

Instance Method Details

#cmd_txt_inplace(file) ⇒ Object

[View source]

298
299
300
# File 'lib/file_command.rb', line 298

def cmd_txt_inplace(file)
  %Q(#{SYSTEM_COMMANDS::NCATTED} --create_ram -h -a standard_name,#{@var_name},o,c,"#{@standard_name}" #{file})
end