Class: Fastlane::Actions::GitPullAction
Class Method Summary
collapse
action_name, author, details, method_missing, other_action, output, return_value, sh, step_text
Class Method Details
.authors ⇒ Object
33
34
35
|
# File 'lib/fastlane/actions/git_pull.rb', line 33
def self.authors
["KrauseFx", "JaviSoto"]
end
|
.available_options ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/fastlane/actions/git_pull.rb', line 20
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :only_tags,
description: "Simply pull the tags, and not bring new commits to the current branch from the remote",
is_string: false,
optional: true,
default_value: false,
verify_block: proc do |value|
UI.user_error!("Please pass a valid value for only_tags. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
end)
]
end
|
.description ⇒ Object
16
17
18
|
# File 'lib/fastlane/actions/git_pull.rb', line 16
def self.description
"Executes a simple git pull command"
end
|
.is_supported?(platform) ⇒ Boolean
37
38
39
|
# File 'lib/fastlane/actions/git_pull.rb', line 37
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/fastlane/actions/git_pull.rb', line 4
def self.run(params)
commands = []
unless params[:only_tags]
commands += ["git pull &&"]
end
commands += ["git fetch --tags"]
Actions.sh(commands.join(' '))
end
|