Class: CodeKindly::Utils::Shell
- Inherits:
-
Object
- Object
- CodeKindly::Utils::Shell
- Includes:
- Deprecation
- Defined in:
- lib/code_kindly/utils/shell.rb
Class Method Summary collapse
Class Method Details
.run(command) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/code_kindly/utils/shell.rb', line 9 def run(command) deprecate :'Shell.run', :'Command.run', :'0.1.0' require 'open3' command = command.join(' ') if command.is_a?(Array) Open3.capture3 command end |