Sha256: 1e643d9437bd3f398a43aaab4f20e8dd8b6c6adb2fcabb9d1da5cdf5ebf24a7b

Contents?: true

Size: 348 Bytes

Versions: 21

Compression:

Stored size: 348 Bytes

Contents

module Windows::Exec
  include Beaker::CommandFactory

  ABS_CMD = 'c:\\\\windows\\\\system32\\\\cmd.exe'
  CMD = 'cmd.exe'

  def echo(msg, abs=true)
    (abs ? ABS_CMD : CMD) + " /c echo #{msg}"
  end

  def touch(file, abs=true)
    (abs ? ABS_CMD : CMD) + " /c echo. 2> #{file}"
  end

  def path
    'c:/windows/system32;c:/windows'
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
beaker-0.0.0 lib/beaker/host/windows/exec.rb