Class: ITunes::Store::Transporter::Command::Lookup
Overview
Retrieve the metadata for a previously delivered package.
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)
-
- (Lookup) initialize(*config)
constructor
A new instance of Lookup.
- - (Object) run(options = {})
Methods inherited from Mode
Constructor Details
- (Lookup) initialize(*config)
A new instance of Lookup
15 16 17 18 19 20 21 22 23 |
# File 'lib/itunes/store/transporter/command/lookup.rb', line 15 def initialize(*config) super # These 2 are mutually exclusive, and one is required. # Optout has no way to denote this .on *VENDOR_ID .on *APPLE_ID .on *SHORTNAME .on *DESTINATION end |
Instance Method Details
- (Object) run(options = {})
25 26 27 28 29 30 31 |
# File 'lib/itunes/store/transporter/command/lookup.rb', line 25 def run( = {}) = .dup [:destination] = Dir.mktmpdir super ensure FileUtils.rm_rf([:destination]) end |