Class: Fastlane::Actions::UploadFirAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::UploadFirAction
- Defined in:
- lib/fastlane/plugin/fastci/actions/upload_fir_action.rb
Overview
上传Fir
Class Method Summary collapse
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Class Method Details
.available_options ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 26 def self. [ FastlaneCore::ConfigItem.new( key: :changelog, description: "更新日志", optional: true, type: String ), ] end |
.category ⇒ Object
41 42 43 |
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 41 def self.category :building end |
.description ⇒ Object
22 23 24 |
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 22 def self.description "上传Fir" end |
.is_supported?(platform) ⇒ Boolean
37 38 39 |
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 37 def self.is_supported?(platform) platform == :ios end |
.run(params) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 9 def self.run(params) UI.("*************| 开始上传Fir |*************") firinfo = other_action.fir_cli( api_token: Environment.fir_api_token, password: Environment.fir_password, changelog: params[:changelog], switch_to_qiniu: true ) return firinfo end |