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

Version Path
beaker-2.31.0 lib/beaker/host/windows/file.rb
beaker-2.30.1 lib/beaker/host/windows/file.rb
beaker-2.30.0 lib/beaker/host/windows/file.rb
beaker-2.29.1 lib/beaker/host/windows/file.rb
beaker-2.29.0 lib/beaker/host/windows/file.rb
beaker-2.28.0 lib/beaker/host/windows/file.rb
beaker-2.27.0 lib/beaker/host/windows/file.rb
beaker-2.26.0 lib/beaker/host/windows/file.rb
beaker-2.25.0 lib/beaker/host/windows/file.rb
beaker-2.24.0 lib/beaker/host/windows/file.rb
beaker-2.23.0 lib/beaker/host/windows/file.rb
beaker-2.22.0 lib/beaker/host/windows/file.rb
beaker-2.21.0 lib/beaker/host/windows/file.rb
beaker-2.20.0 lib/beaker/host/windows/file.rb
beaker-2.19.0 lib/beaker/host/windows/file.rb
beaker-2.18.3 lib/beaker/host/windows/file.rb
beaker-2.18.2 lib/beaker/host/windows/file.rb
beaker-2.18.1 lib/beaker/host/windows/file.rb
beaker-2.18.0 lib/beaker/host/windows/file.rb
beaker-2.17.0 lib/beaker/host/windows/file.rb