lib/beaker/host/aix/file.rb in beaker-3.37.0 vs lib/beaker/host/aix/file.rb in beaker-4.0.0
- old
+ new
@@ -1,12 +1,12 @@
module Aix::File
include Beaker::CommandFactory
- def tmpfile(name)
+ def tmpfile(name = '')
execute("rndnum=${RANDOM} && touch /tmp/#{name}.${rndnum} && echo /tmp/#{name}.${rndnum}")
end
- def tmpdir(name)
+ def tmpdir(name = '')
execute("rndnum=${RANDOM} && mkdir /tmp/#{name}.${rndnum} && echo /tmp/#{name}.${rndnum}")
end
def path_split(paths)
paths.split(':')