Method: Windows::Exec#prepend_commands
- Defined in:
- lib/beaker/host/windows/exec.rb
#prepend_commands(command = '', user_pc = nil, opts = {}) ⇒ String
Gets the specific prepend commands as needed for this host
87 88 89 90 91 |
# File 'lib/beaker/host/windows/exec.rb', line 87 def prepend_commands(command = '', user_pc = nil, opts = {}) cygwin_prefix = (self.is_cygwin? and opts[:cmd_exe]) ? 'cmd.exe /c' : '' spacing = (user_pc && !cygwin_prefix.empty?) ? ' ' : '' "#{cygwin_prefix}#{spacing}#{user_pc}" end |