# File lib/puppet/provider/ssh_authorized_key/parsed.rb, line 98 98: def self.parse_options(options) 99: result = [] 100: scanner = StringScanner.new(options) 101: while !scanner.eos? 102: scanner.skip(/[ \t]*/) 103: # scan a long option 104: if out = scanner.scan(/[-a-z0-9A-Z_]+=\".*?\"/) or out = scanner.scan(/[-a-z0-9A-Z_]+/) 105: result << out 106: else 107: # found an unscannable token, let's abort 108: break 109: end 110: # eat a comma 111: scanner.skip(/[ \t]*,[ \t]*/) 112: end 113: result 114: end