Module: NCO_warning_filter
- Included in:
- NCATTED_ADD_GLOBAL_ATTRIBUTES_cmd, NCATTED_APPEND_COORDINATES_VALUE_cmd, NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd, NCATTED_DELETE_VARIABLE_ATTRIBUTES_cmd, NCATTED_SET_LAT_LON_BNDS_STANDARD_NAME_cmd, NCATTED_SET_VARIABLE_CELL_METHODS_CELL_MEASURES_cmd, NCATTED_SET_VARIABLE_DESCRIPTION_cmd, NCATTED_SET_VARIABLE_STANDARD_NAME_cmd, NCATTED_SET_VARIABLE_UNITS_cmd, NCCOPY_COMPRESS_cmd, NCKS_APPEND_GRID_cmd, NCRENAME_DIMENSION_NODES_XD_TO_NCELLS_cmd, NCRENAME_RENAME_VARIABLE_cmd
- Defined in:
- lib/file_command.rb
Overview
nco utilities issue a warning to stderr if the path of an input file has more than 254 characters we want to ignore this 20th century warning and do not abort if it appears on stderr github.com/nco/nco/blob/405aea3e6777dc9dd3ccb931471bdc9d8440ca7e/src/nco/nco_fl_utl.c#L386
Instance Method Summary collapse
Instance Method Details
#command_success?(out, err, status) ⇒ Boolean
89 90 91 92 93 94 95 96 |
# File 'lib/file_command.rb', line 89 def command_success?(out, err, status) return false unless status.success? unless err.empty? return false unless err =~ /and may not be portable to older operating systems|may not play well with older operating systems/ end true end |