method
parse_make_command_line
v2_4_6 -
Show latest stable
- Class:
Gem::TestCase
parse_make_command_line(line)public
No documentation available.
# File lib/rubygems/test_case.rb, line 144
def parse_make_command_line(line)
command, *args = line.shellsplit
targets = []
macros = {}
args.each do |arg|
case arg
when /\A(\w+)=/
macros[$1] = $'
else
targets << arg
end
end
targets << '' if targets.empty?
{
:command => command,
:targets => targets,
:macros => macros,
}
end