Class: ITunes::Store::Transporter::Command::Upload

Inherits:
BatchMode show all
Defined in:
lib/itunes/store/transporter/command/upload.rb

Overview

Upload a package to the iTunes Store

Constant Summary

Constants inherited from BatchMode

BatchMode::BatchOption, BatchMode::PackageOption

Constants included from Option

Option::APPLE_ID, Option::DESTINATION, Option::FAILURE, Option::ITC_PROVIDER, Option::SHORTNAME, Option::SUCCESS, Option::TRANSPORT, Option::VENDOR_ID

Instance Method Summary collapse

Methods inherited from Base

#run

Constructor Details

#initialize(*config) ⇒ Upload

Returns a new instance of Upload.



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/itunes/store/transporter/command/upload.rb', line 13

def initialize(*config)
  super
  options.on *TRANSPORT
  options.on *SUCCESS
  options.on *FAILURE
  options.on *SHORTNAME
  options.on *ITC_PROVIDER
  options.on :delete, "-delete", Optout::Boolean
  options.on :rate, "-k", Integer  # Required if TRANSPORT is Aspera or Signiant
  options.on :streams, "-numStreams", Integer  # Only valid if TRANSPORT is Signiant
  options.on :log_history, "-loghistory", Optout::Dir.exists
end