Class: Phase::IPA::App
- Inherits:
-
Object
- Object
- Phase::IPA::App
- Defined in:
- lib/phase/kit/ipa/app.rb
Instance Attribute Summary collapse
-
#download_url ⇒ Object
Returns the value of attribute download_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#qualified_path ⇒ Object
readonly
Returns the value of attribute qualified_path.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(qualified_path, version) ⇒ App
constructor
A new instance of App.
- #ipa_filename ⇒ Object
- #plist_filename ⇒ Object
- #plist_xml ⇒ Object
Constructor Details
#initialize(qualified_path, version) ⇒ App
Returns a new instance of App.
7 8 9 10 |
# File 'lib/phase/kit/ipa/app.rb', line 7 def initialize(qualified_path, version) @qualified_path, @version = qualified_path, version @name = ::File.basename(qualified_path, ".ipa") end |
Instance Attribute Details
#download_url ⇒ Object
Returns the value of attribute download_url.
5 6 7 |
# File 'lib/phase/kit/ipa/app.rb', line 5 def download_url @download_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/phase/kit/ipa/app.rb', line 4 def name @name end |
#qualified_path ⇒ Object (readonly)
Returns the value of attribute qualified_path.
4 5 6 |
# File 'lib/phase/kit/ipa/app.rb', line 4 def qualified_path @qualified_path end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/phase/kit/ipa/app.rb', line 4 def version @version end |
Instance Method Details
#ipa_filename ⇒ Object
12 13 14 |
# File 'lib/phase/kit/ipa/app.rb', line 12 def ipa_filename "#{bundle_name}-#{version}.ipa" end |
#plist_filename ⇒ Object
16 17 18 |
# File 'lib/phase/kit/ipa/app.rb', line 16 def plist_filename "#{bundle_name}-#{version}.plist" end |
#plist_xml ⇒ Object
20 21 22 23 |
# File 'lib/phase/kit/ipa/app.rb', line 20 def plist_xml xml = ::File.read( ::File.("../../templates/ipa_xml.plist", __dir__) ) ::ERB.new(xml).result(binding) end |