Class: Fastlane::Actions::GitSubmoduleUpdateAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, example_code, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
43
44
45
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 43
def self.authors
["braunico"]
end
|
.available_options ⇒ Object
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 23
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,
is_string: false,
default_value: false)
]
end
|
.category ⇒ Object
51
52
53
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 51
def self.category
:source_control
end
|
.description ⇒ Object
15
16
17
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 15
def self.description
"Executes a git submodule command"
end
|
.details ⇒ Object
19
20
21
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 19
def self.details
nil
end
|
.is_supported?(platform) ⇒ Boolean
47
48
49
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 47
def self.is_supported?(platform)
return true
end
|
.output ⇒ Object
37
38
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 37
def self.output
end
|
.return_value ⇒ Object
40
41
|
# File 'fastlane/lib/fastlane/actions/git_submodule_update.rb', line 40
def self.return_value
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
|
# 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
|