Class: Pod::Source

Inherits:
Object
  • Object
show all
Extended by:
Executable
Defined in:
lib/cocoapods/sources_manager.rb

Defined Under Namespace

Classes: Manager

Updating Sources collapse

Methods included from Executable

capture_command, executable, execute_command, popen3, reader, which, which!

Instance Method Details

#git(args, include_error: false) ⇒ Object



101
102
103
# File 'lib/cocoapods/sources_manager.rb', line 101

def git(args, include_error: false)
  Executable.capture_command('git', args, :capture => include_error ? :merge : :out).first.strip
end

#update_git_repo(show_output = false) ⇒ Object



105
106
107
108
109
110
111
112
113
114
115
# File 'lib/cocoapods/sources_manager.rb', line 105

def update_git_repo(show_output = false)
  ensure_in_repo!
  Config.instance.with_changes(:verbose => show_output) do
    git!(%w(pull --ff-only))
  end
rescue
  UI.warn 'CocoaPods was not able to update the ' \
            "`#{name}` repo. If this is an unexpected issue " \
            'and persists you can inspect it running ' \
            '`pod repo update --verbose`'
end