Class: ITunes::Store::Transporter::Command::Schema

Inherits:
Mode
  • Object
show all
Defined in:
lib/itunes/store/transporter/command/schema.rb

Overview

Download a RelaxNG schema file for a particular metadata specification.

Constant Summary

Constant Summary

Constants included from Option

Option::APPLE_ID, Option::DELETE_ON_SUCCESS, Option::DESTINATION, Option::ON_FAILURE, Option::ON_SUCCESS, Option::PACKAGE, Option::SHORTNAME, Option::TRANSPORT, Option::VENDOR_ID

Instance Method Summary (collapse)

Methods inherited from Mode

#create_transporter_options

Methods inherited from Base

#run

Constructor Details

- (Schema) initialize(*config)

A new instance of Schema



13
14
15
16
17
18
19
# File 'lib/itunes/store/transporter/command/schema.rb', line 13

def initialize(*config)
  super
  options.on *SHORTNAME
  options.on *DESTINATION
  options.on :type, "-schemaType", /\A(transitional|strict)\z/i, :required => true
  options.on :version, "-schema", /\w+/i, :required => true
end