Class: NCATTED_DELETE_GLOBAL_ATTRIBUTES_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(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