Method: Train::Extras::LinuxCommand#initialize
- Defined in:
- lib/train/extras/command_wrapper.rb
#initialize(backend, options) ⇒ LinuxCommand
Returns a new instance of LinuxCommand.
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/train/extras/command_wrapper.rb', line 40 def initialize(backend, ) @backend = backend () @shell = [:shell] @shell_options = [:shell_options] # e.g. '--login' @shell_command = [:shell_command] # e.g. '/bin/sh' @sudo = [:sudo] @sudo_options = [:sudo_options] @sudo_password = [:sudo_password] @sudo_command = [:sudo_command] @user = [:user] end |