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