Class: FIR::AppUploader
- Includes:
- ApiTools::DefaultRestModule, Config
- Defined in:
- lib/fir/util/app_uploader.rb
Direct Known Subclasses
Constant Summary
Constants included from Config
Config::API_YML_PATH, Config::APP_FILE_TYPE, Config::APP_INFO_PATH, Config::CONFIG_PATH, Config::XCODE_WRAPPER_PATH
Instance Attribute Summary collapse
-
#app_info ⇒ Object
Returns the value of attribute app_info.
-
#options ⇒ Object
Returns the value of attribute options.
-
#uploading_info ⇒ Object
Returns the value of attribute uploading_info.
-
#user_info ⇒ Object
Returns the value of attribute user_info.
Instance Method Summary collapse
-
#initialize(app_info, user_info, uploading_info, options) ⇒ AppUploader
constructor
A new instance of AppUploader.
- #upload ⇒ Object
Methods included from Config
#bughd_api, #config, #current_token, #fir_api, #reload_config, #write_app_info, #write_config
Constructor Details
#initialize(app_info, user_info, uploading_info, options) ⇒ AppUploader
Returns a new instance of AppUploader.
7 8 9 10 11 12 |
# File 'lib/fir/util/app_uploader.rb', line 7 def initialize(app_info, user_info, uploading_info, ) @app_info = app_info @user_info = user_info @uploading_info = uploading_info @options = end |
Instance Attribute Details
#app_info ⇒ Object
Returns the value of attribute app_info.
6 7 8 |
# File 'lib/fir/util/app_uploader.rb', line 6 def app_info @app_info end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/fir/util/app_uploader.rb', line 6 def @options end |
#uploading_info ⇒ Object
Returns the value of attribute uploading_info.
6 7 8 |
# File 'lib/fir/util/app_uploader.rb', line 6 def uploading_info @uploading_info end |
#user_info ⇒ Object
Returns the value of attribute user_info.
6 7 8 |
# File 'lib/fir/util/app_uploader.rb', line 6 def user_info @user_info end |
Instance Method Details
#upload ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fir/util/app_uploader.rb', line 14 def upload upload_icon binary_callback_info = upload_binary # 将 binary 的callback信息返回 binary_callback_info end |