lib/junos-ez/utils/fs.rb
### private method used to convert 'cleanup' file XML
### to hash structure and bind it to collecting hash

private method used to convert 'cleanup' file XML
to hash structure and bind it to collecting hash
private method used to convert ' cleanup ' file XML to hash structure and bind it to collecting hash
def _cleanup_file_to_h( file, attach_h )
    file_name = file.xpath('file-name').text.strip
    file_h = {}
    data = file.xpath('size')
    file_h[:size_text] = data.attribute('format').value
    file_h[:size] = data.text.to_i
    file_h[:date] = file.xpath('date').text.strip
    attach_h[file_name] = file_h
    file_h    
  end
def _cleanup_file_to_h ( file , attach_h ) file_name = file . xpath ( 'file-name' ) . text . strip file_h = { } data = file . xpath ( 'size' ) file_h [ :size_text ] = data . attribute ( 'format' ) . value file_h [ :size ] = data . text . to_i file_h [ :date ] = file . xpath ( 'date' ) . text . strip attach_h [ file_name ] = file_h file_h end
private method used to convert 'cleanup' file XML
to hash structure and bind it to collecting hash
private method used to convert ' cleanup ' file XML to hash structure and bind it to collecting hash
file
<not_specific>
attach_h
<not_specific>