Module: Unix::Exec

Includes:
Beaker::CommandFactory
Included in:
Host
Defined in:
lib/beaker/host/unix/exec.rb

Instance Method Summary collapse

Methods included from Beaker::CommandFactory

#execute, #fail_test

Instance Method Details

#echo(msg, abs = true) ⇒ Object



4
5
6
# File 'lib/beaker/host/unix/exec.rb', line 4

def echo(msg, abs=true)
  (abs ? '/bin/echo' : 'echo') + " #{msg}"
end

#pathObject



12
13
14
# File 'lib/beaker/host/unix/exec.rb', line 12

def path
  '/bin:/usr/bin'
end

#touch(file, abs = true) ⇒ Object



8
9
10
# File 'lib/beaker/host/unix/exec.rb', line 8

def touch(file, abs=true)
  (abs ? '/bin/touch' : 'touch') + " #{file}"
end