X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Fvendor%2Fsystemu%2Fsamples%2Fe.rb;fp=lib%2Fmcollective%2Fvendor%2Fsystemu%2Fsamples%2Fe.rb;h=2c26e6237ab3da6c6af092c699bd45c0f21e51c7;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/vendor/systemu/samples/e.rb b/lib/mcollective/vendor/systemu/samples/e.rb new file mode 100644 index 0000000..2c26e62 --- /dev/null +++ b/lib/mcollective/vendor/systemu/samples/e.rb @@ -0,0 +1,9 @@ +# +# any environment vars specified are merged into the child's environment +# + require 'systemu' + + env = %q( ruby -r yaml -e" puts ENV[ 'answer' ] " ) + + status = systemu env, 1=>stdout='', 'env'=>{ 'answer' => 0b101010 } + puts stdout