Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / lib / mcollective / vendor / systemu / samples / d.rb
diff --git a/lib/mcollective/vendor/systemu/samples/d.rb b/lib/mcollective/vendor/systemu/samples/d.rb
new file mode 100644 (file)
index 0000000..84d4ae9
--- /dev/null
@@ -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
+