platform_simulation_specs/common/ohai_plugin_common.rb
def data_to_string(data)
    a = data.map do |platform,v|
      v.map do |arch,v|
        v.map do |e|
          to_fake_exe_format platform, arch, e[:env], e[:params], e[:stdout], e[:stderr], e[:exit_status]
        end
      end
    end
    a.flatten.join( "\n" )
  end
# prep fake executable data for writing to a file
prep fake executable data for writing to a file
prep fake executable data for writing to a file
def data_to_string(data)
    a = data.map do |platform,v|
      v.map do |arch,v|
        v.map do |e|
          to_fake_exe_format platform, arch, e[:env], e[:params], e[:stdout], e[:stderr], e[:exit_status]
        end
      end
    end
    a.flatten.join( "\n" )
  end
def data_to_string ( data ) a = data . map do | platform , v | v . map do | arch , v | v . map do | e | to_fake_exe_format platform , arch , e [ :env ] , e [ :params ] , e [ :stdout ] , e [ :stderr ] , e [ :exit_status ] end end end a . flatten . join ( "\n" ) end
prep fake executable data for writing to a file
prep fake executable data for writing to a file
data