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.
155 156 157 158 159 160 |
# File 'lib/train/extras/command_wrapper.rb', line 155 def initialize(backend, ) @backend = backend () @shell_command = [:shell_command] # e.g. 'powershell' end |
Instance Method Details
#run(command) ⇒ Object
163 164 165 |
# File 'lib/train/extras/command_wrapper.rb', line 163 def run(command) powershell_wrap(command) end |