Class: NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd
- Inherits:
-
InplaceCommand
- Object
- FileCommand
- InplaceCommand
- NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd
- Includes:
- NCO_warning_filter
- Defined in:
- lib/file_command.rb
Instance Method Summary collapse
- #cmd_txt_inplace(file) ⇒ Object
-
#initialize(attribute_names) ⇒ NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd
constructor
A new instance of NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd.
Methods included from NCO_warning_filter
Methods inherited from InplaceCommand
Methods inherited from FileCommand
Constructor Details
#initialize(attribute_names) ⇒ NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd
Returns a new instance of NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd.
220 221 222 |
# File 'lib/file_command.rb', line 220 def initialize(attribute_names) @attribute_names = attribute_names end |
Instance Method Details
#cmd_txt_inplace(file) ⇒ Object
224 225 226 227 228 |
# File 'lib/file_command.rb', line 224 def cmd_txt_inplace(file) att_args = "" @attribute_names.each {|n| att_args += %Q( -a #{n},global,d,,)} %Q(#{SYSTEM_COMMANDS::NCATTED} --create_ram -h#{att_args} #{file}) end |