Class: Datacenter::Shell::Local
- Inherits:
-
Object
- Object
- Datacenter::Shell::Local
- Defined in:
- lib/datacenter/shell.rb
Instance Method Summary collapse
Instance Method Details
#run(command) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/datacenter/shell.rb', line 5 def run(command) if RUBY_ENGINE == 'jruby' run_system command else run_open3 command end end |