X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Fvendor%2Fsystemu%2Fsamples%2Fd.rb;fp=lib%2Fmcollective%2Fvendor%2Fsystemu%2Fsamples%2Fd.rb;h=84d4ae9ef6bba7f41fc87d169cebd94dd4635b27;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/vendor/systemu/samples/d.rb b/lib/mcollective/vendor/systemu/samples/d.rb new file mode 100644 index 0000000..84d4ae9 --- /dev/null +++ b/lib/mcollective/vendor/systemu/samples/d.rb @@ -0,0 +1,11 @@ +# +# the cwd can be supplied +# + require 'systemu' + require 'tmpdir' + + pwd = %q( ruby -e" STDERR.puts Dir.pwd " ) + + status = systemu pwd, 2=>(stderr=''), :cwd=>Dir.tmpdir + puts stderr +