Sha256: 7d5d75f03f9c6607390f7df1862400201867c88470b1981534cc38011bf9ab42
Contents?: true
Size: 423 Bytes
Versions: 34
Compression:
Stored size: 423 Bytes
Contents
module Windows::File include Beaker::CommandFactory def tmpfile(name) execute("cygpath -m $(mktemp -t #{name}.XXXXXX)") end def tmpdir(name) execute("cygpath -m $(mktemp -td #{name}.XXXXXX)") end def path_split(paths) paths.split(';') end def file_exist?(path) result = exec(Beaker::Command.new("test -e '#{path}'"), :acceptable_exit_codes => [0, 1]) result.exit_code == 0 end end
Version data entries
34 entries across 34 versions & 1 rubygems