Class: Fastlane::Actions::RefAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::RefAction
- Defined in:
- lib/fastlane/plugin/rocket/actions/ref_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 20 def self. ["三块"] end |
.available_options ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 32 def self. [ FastlaneCore::ConfigItem.new(key: :git, env_name: 'R_REF_GIT', description: '工程仓库地址', optional: false, type: String, verify_block: proc do |value| Tools.error("git不能为空") unless (value and not value.empty?) ENV["R_REF_GIT"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :branch, env_name: 'R_REF_BRANCH', description: '工程分支', optional: false, type: String, verify_block: proc do |value| Tools.error("branch不能为空") unless (value and not value.empty?) ENV["R_REF_BRANCH"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :pods, env_name: 'R_REF_PODS', description: '默认全量查询(耗时很久请勿使用),需要查询的pod组合,逗号分隔。1.找出哪些库使用该pod组件,却未在podsepc依赖库 2.分析import方式错误的依赖库', optional: true, default_value:"ALL", type: String, verify_block: proc do |value| Tools.error("pods不能为空") unless (value and not value.empty?) ENV["R_REF_PODS"] = value.to_s end) ] end |
.description ⇒ Object
16 17 18 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 16 def self.description "查找引入文件,却未在podsepc依赖文件的来源库" end |
.details ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 28 def self.details "生成表,表明哪些库需要在哪些podspec中引入" end |
.is_supported?(platform) ⇒ Boolean
66 67 68 69 70 71 72 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 66 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform # # [:ios, :mac, :android].include?(platform) true end |
.return_value ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 24 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/fastlane/plugin/rocket/actions/ref_action.rb', line 7 def self.run(params) begin Ref::RefMain.run(params,) rescue Exception => e Tools.error(e.) end Tools.title("完成!!!") end |