def save_device_data(dev_array)
      dev_array.each do |device|
        device_hash = {}
        device.each do |key, value|
          device_hash[key] = value
        end

        # Delete and create output folder
        `rm -rf output`
        `mkdir output`

        device.each do |k, v|
          open("output/specs-#{device_hash[:udid]}.log", 'a') do |file|
            file << "#{k}: #{v}\n"
          end
        end
      end
    end
def save_device_data(dev_array)
      dev_array.each do |device|
        device_hash = {}
        device.each do |key, value|
          device_hash[key] = value
        end

        # Delete and create output folder
        `rm -rf output`
        `mkdir output`

        device.each do |k, v|
          open("output/specs-#{device_hash[:udid]}.log", 'a') do |file|
            file << "#{k}: #{v}\n"
          end
        end
      end
    end
Save device specifications to output directory