Class: Train::Extras::CommandWrapper
- Inherits:
-
Object
- Object
- Train::Extras::CommandWrapper
- Defined in:
- lib/train/extras/command_wrapper.rb
Class Method Summary collapse
Class Method Details
.load(transport, options) ⇒ Object
127 128 129 130 131 132 133 134 135 |
# File 'lib/train/extras/command_wrapper.rb', line 127 def self.load(transport, ) if transport.os.unix? return nil unless LinuxCommand.active?() res = LinuxCommand.new(transport, ) msg = res.verify fail Train::UserError, "Sudo failed: #{msg}" unless msg.nil? res end end |