Class: Deliver::UploadAssets
- Inherits:
-
Object
- Object
- Deliver::UploadAssets
- Defined in:
- lib/deliver/upload_assets.rb
Instance Method Summary collapse
Instance Method Details
#upload(options) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/deliver/upload_assets.rb', line 3 def upload() app = [:app] v = app.edit_version raise "Could not find a version to edit for app '#{app.name}'".red unless v if [:app_icon] Helper.log.info "Uploading app icon..." v.upload_large_icon!([:app_icon]) end if [:apple_watch_app_icon] Helper.log.info "Uploading apple watchapp icon..." v.upload_watch_icon!([:apple_watch_app_icon]) end v.save! end |