Class: Phase::CLI::IPA
Instance Attribute Summary collapse
-
#filenames ⇒ Object
Returns the value of attribute filenames.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize(args, options) ⇒ IPA
constructor
A new instance of IPA.
- #run ⇒ Object
Methods included from Util::Console
Constructor Details
#initialize(args, options) ⇒ IPA
Returns a new instance of IPA.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/phase/cli/ipa.rb', line 20 def initialize(args, ) @version = args.shift @filenames = args if @version.blank? || @filenames.blank? fail "invalid syntax: phase ipa [--version version_number] [filename|glob_pattern]..." end if Phase.config.bundle_id_prefix.blank? fail "missing setting: set `Phase.config.bundle_id_prefix = [PREFIX] in Phasefile" elsif Phase.config.ipa_bucket_name.blank? fail "missing setting: set `Phase.config.ipa_bucket_name = [BUCKET]` in Phasefile" elsif Phase.config.ipa_directory_prefix.blank? fail "missing setting: set `Phase.config.ipa_directory_prefix = [PREFIX] in Phasefile" end super end |
Instance Attribute Details
#filenames ⇒ Object
Returns the value of attribute filenames.
18 19 20 |
# File 'lib/phase/cli/ipa.rb', line 18 def filenames @filenames end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/phase/cli/ipa.rb', line 18 def version @version end |
Instance Method Details
#run ⇒ Object
39 40 41 42 |
# File 'lib/phase/cli/ipa.rb', line 39 def run deployment = ::Phase::IPA::EnterpriseDeployment.new(version, *filenames) deployment.run! end |