Class: ITunes::Store::Transporter::OutputParser
- Inherits:
-
Object
- Object
- ITunes::Store::Transporter::OutputParser
- Defined in:
- lib/itunes/store/transporter/output_parser.rb
Constant Summary
- ERROR_LINE =
/>\s+ERROR:\s+(.+)/- WARNING_LINE =
/>\s+WARN:\s+(.+)/- SKIP_ERRORS =
Generic messages we want to ignore
[ /\boperation was not successful/i, /\bunable to verify the package/i, /^an error occurred while/i, /^unknown operation/i, /\bunable to authenticate/i ]
Instance Attribute Summary (collapse)
-
- (Object) errors
readonly
Returns the value of attribute errors.
-
- (Object) warnings
readonly
Returns the value of attribute warnings.
Instance Method Summary (collapse)
-
- (OutputParser) initialize(output)
constructor
Arguments.
Constructor Details
- (OutputParser) initialize(output)
Arguments
- output (Array)
-
iTMSTransporter output
30 31 32 33 34 |
# File 'lib/itunes/store/transporter/output_parser.rb', line 30 def initialize(output) @errors = [] @warnings = [] parse_output(output) if Array === output end |
Instance Attribute Details
- (Object) errors (readonly)
Returns the value of attribute errors
12 13 14 |
# File 'lib/itunes/store/transporter/output_parser.rb', line 12 def errors @errors end |
- (Object) warnings (readonly)
Returns the value of attribute warnings
13 14 15 |
# File 'lib/itunes/store/transporter/output_parser.rb', line 13 def warnings @warnings end |