Module: Unix::Exec
Instance Method Summary collapse
Methods included from Beaker::CommandFactory
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 |
#path ⇒ Object
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 |