Method: Specinfra::Backend::PowerShell::ScriptHelper#build_command
- Defined in:
- lib/specinfra/backend/powershell/script_helper.rb
#build_command(cmd) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/specinfra/backend/powershell/script_helper.rb', line 7 def build_command(cmd) path = get_config(:path) if path cmd.strip! cmd = <<-EOF $env:path = "#{path};$env:path" #{cmd} EOF end cmd end |