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
98 99 100 101 102 |
# File 'lib/beaker/host/windows/exec.rb', line 98 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 |