platform_simulation_specs/common/ohai_plugin_common.rb
# output a fake executable case in the DSL
output a fake executable case in the DSL
output a fake executable case in the DSL
def to_fake_exe_format(platform, arch, env, params, stdout, stderr, exit_status)
    e = FFI_Yajl::Encoder.new
    <<-eos
platform "#{platform}"
arch "#{arch}"
env #{env}
params #{e.encode( params )}
stdout #{e.encode( stdout )}
stderr #{e.encode( stderr )}
exit_status #{exit_status}
eos
  end
def to_fake_exe_format ( platform , arch , env , params , stdout , stderr , exit_status ) e = FFI_Yajl :: Encoder . new <<-eos 
platform " #{ platform } "
arch " #{ arch } "
env  #{ env } 
params  #{ e . encode ( params ) } 
stdout  #{ e . encode ( stdout ) } 
stderr  #{ e . encode ( stderr ) } 
exit_status  #{ exit_status } eos end
output a fake executable case in the DSL
output a fake executable case in the DSL
platform
arch
env
params
stdout
stderr
exit_status