Method: Gitlab::Shell.parse_input
- Defined in:
- lib/gitlab/shell.rb
.parse_input(buffer) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/gitlab/shell.rb', line 47 def parse_input(buffer) buf = Shellwords.shellwords(buffer) @command = buf.shift @arguments = buf.count.positive? ? buf : [] end |