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-1.9.1 lib/beaker/host/windows/exec.rb
beaker-1.9.0 lib/beaker/host/windows/exec.rb
beaker-1.8.2 lib/beaker/host/windows/exec.rb
beaker-1.8.1 lib/beaker/host/windows/exec.rb
beaker-1.8.0 lib/beaker/host/windows/exec.rb
beaker-1.7.0 lib/beaker/host/windows/exec.rb
beaker-1.6.2 lib/beaker/host/windows/exec.rb
beaker-1.6.1 lib/beaker/host/windows/exec.rb
beaker-1.6.0 lib/beaker/host/windows/exec.rb
beaker-1.5.0 lib/beaker/host/windows/exec.rb
beaker-1.4.1 lib/beaker/host/windows/exec.rb
beaker-1.4.0 lib/beaker/host/windows/exec.rb
beaker-1.3.2 lib/beaker/host/windows/exec.rb
beaker-1.3.1 lib/beaker/host/windows/exec.rb
beaker-1.3.0 lib/beaker/host/windows/exec.rb
beaker-1.2.0 lib/beaker/host/windows/exec.rb
beaker-1.1.0 lib/beaker/host/windows/exec.rb
beaker-1.0.1 lib/beaker/host/windows/exec.rb
beaker-1.0.1.pre lib/beaker/host/windows/exec.rb
beaker-1.0.0 lib/beaker/host/windows/exec.rb