Class: Train::Extras::WindowsCommand
- Inherits:
-
CommandWrapperBase
- Object
- CommandWrapperBase
- Train::Extras::WindowsCommand
- Defined in:
- lib/train/extras/command_wrapper.rb
Overview
Wrap windows commands.
Instance Method Summary collapse
-
#initialize(backend, options) ⇒ WindowsCommand
constructor
A new instance of WindowsCommand.
- #run(command) ⇒ Object
Methods inherited from CommandWrapperBase
Constructor Details
#initialize(backend, options) ⇒ WindowsCommand
Returns a new instance of WindowsCommand.
131 132 133 134 135 136 |
# File 'lib/train/extras/command_wrapper.rb', line 131 def initialize(backend, ) @backend = backend () @shell_command = [:shell_command] # e.g. 'powershell' end |
Instance Method Details
#run(command) ⇒ Object
139 140 141 |
# File 'lib/train/extras/command_wrapper.rb', line 139 def run(command) powershell_wrap(command) end |