Validate the contents of a package's metadata and assets.
Methods
Class Public methods
new(*config)
Link
Source: show
# File lib/itunes/store/transporter/command/verify.rb, line 15 def initialize(*config) super options.on :verify_assets, "-disableAssetVerification", Optout::Boolean # If false verify MD only no assets end
Instance Protected methods
create_transporter_options(optz)
Link
Source: show
# File lib/itunes/store/transporter/command/verify.rb, line 22 def create_transporter_options(optz) # Include the option if false optz[:verify_assets] = !optz[:verify_assets] if optz.include?(:verify_assets) super end
handle_success(stdout_lines, stderr_lines, options)
Link
Verify mode returns 0 if there are no packages to verify but will emit an error message about the lack of packages
Source: show
# File lib/itunes/store/transporter/command/verify.rb, line 29 def handle_success(stdout_lines, stderr_lines, options) parser = OutputParser.new(stderr_lines) if parser.errors.any? raise ExecutionError.new(parser.errors, 0) else true end end