Class: Fastlane::Actions::SyncAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SyncAction
- Defined in:
- lib/fastlane/plugin/rocket/actions/sync_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/sync_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 |
# File 'lib/fastlane/plugin/rocket/actions/sync_action.rb', line 32 def self. [ FastlaneCore::ConfigItem.new(key: :git, env_name: 'R_SYNC_GIT', description: '壳工程仓库地址,不传默认取[email protected]:ios-team/dushu-ios-new.git', optional: true, type: String, default_value:"[email protected]:ios-team/dushu-ios-new.git", verify_block: proc do |value| ENV["R_SYNC_GIT"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :branch, env_name: 'R_SYNC_BRANCH', description: '同步壳工程分支,不传默认取当前工程的分支', optional: true, type: String, default_value:"", verify_block: proc do |value| branch = value.to_s if branch.empty? tmp_branch = Tools.return_shell("git rev-parse --abbrev-ref HEAD") if tmp_branch == -1 Tools.error("分支错误,需要传分支参数 or 在项目位置执行本命令,将会获取项目的当前分支") end branch = tmp_branch end ENV["R_SYNC_BRANCH"] = branch end) ] end |
.description ⇒ Object
16 17 18 |
# File 'lib/fastlane/plugin/rocket/actions/sync_action.rb', line 16 def self.description "同步壳工程,将业务库可以独立运行" end |
.details ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugin/rocket/actions/sync_action.rb', line 28 def self.details "将壳工程的podfile和工程同步到业务库,并支持业务库自定义podfile设置" end |
.is_supported?(platform) ⇒ Boolean
64 65 66 67 68 69 70 |
# File 'lib/fastlane/plugin/rocket/actions/sync_action.rb', line 64 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/sync_action.rb', line 24 def self.return_value # If your method provides a return value, you can describe here what it does end |