class Fastlane::Actions::GitSubmoduleUpdateAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 19 def self.available_options [ FastlaneCore::ConfigItem.new(key: :recursive, description: "Should the submodules be updated recursively?", type: Boolean, default_value: false), FastlaneCore::ConfigItem.new(key: :init, description: "Should the submodules be initiated before update?", type: Boolean, default_value: false) ] end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 55 def self.category :source_control end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 15 def self.description "Executes a git submodule update command" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 46 def self.example_code [ 'git_submodule_update', 'git_submodule_update(recursive: true)', 'git_submodule_update(init: true)', 'git_submodule_update(recursive: true, init: true)' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 42 def self.is_supported?(platform) return true end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 32 def self.output end
return_value()
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 35 def self.return_value end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/git_submodule_update.rb, line 4 def self.run(params) commands = ["git submodule update"] commands += ["--init"] if params[:init] commands += ["--recursive"] if params[:recursive] Actions.sh(commands.join(' ')) end