Class: Fastlane::Actions::GitPullAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/git_pull.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, output, return_value, sh, step_text

Class Method Details

.authorObject



24
25
26
# File 'lib/fastlane/actions/git_pull.rb', line 24

def self.author
  "KrauseFx"
end

.available_optionsObject



19
20
21
22
# File 'lib/fastlane/actions/git_pull.rb', line 19

def self.available_options
  [
  ]
end

.descriptionObject



15
16
17
# File 'lib/fastlane/actions/git_pull.rb', line 15

def self.description
  "Executes a simple git pull command"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/fastlane/actions/git_pull.rb', line 28

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/fastlane/actions/git_pull.rb', line 4

def self.run(params)
  command = [
    'git',
    'pull',
    '--tags'
  ]

  Actions.sh(command.join(' '))
  Helper.log.info 'Sucesfully pulled from remote.'
end