Class: ITunes::Store::Transporter::Command::Mode
- Defined in:
- lib/itunes/store/transporter/command.rb
Constant Summary
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
-
#initialize(*config) ⇒ Mode
constructor
A new instance of Mode.
Methods inherited from Base
Constructor Details
#initialize(*config) ⇒ Mode
Returns a new instance of Mode.
81 82 83 84 85 86 87 88 89 |
# File 'lib/itunes/store/transporter/command.rb', line 81 def initialize(*config) super .on :log, "-o", Optout::File .on :verbose, "-v", %w|informational critical detailed eXtreme| # Since log output is critical to determining what's going on we can't include "off" .on :summary, "-summaryFile", Optout::File .on :mode, "-m", /\w+/, :required => true .on :username, "-u", :required => true .on :password, "-p", :required => true end |