Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
43576820
Commit
43576820
authored
Mar 31, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic Update command prototype
parent
f2476b9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
project.rb
lib/cocoapods/command/project.rb
+25
-2
No files found.
lib/cocoapods/command/project.rb
View file @
43576820
...
...
@@ -76,10 +76,33 @@ module Pod
self
.
summary
=
'Update outdated project dependencies'
self
.
description
=
<<-
DESC
Update the pods specified (all pods, if none are specified), ignoring the previously
installed pods specified in the Podfile.lock. In general, you should use pod install
to install the same exact gems and versions across machines.
You would use pod update to explicitly update the version of a gem.
DESC
self
.
arguments
=
'[PODS]'
def
initialize
(
argv
)
@pods
=
argv
.
arguments!
unless
argv
.
arguments
.
empty?
super
end
def
run
verify_podfile_exists!
verify_lockfile_exists!
run_install_with_update
(
true
)
if
@pods
verify_lockfile_exists!
# TODO: Check if all given pods are installed unless no pods are given
# TODO: Handle update of specific pods only
else
UI
.
puts
"Update all pods"
.
yellow
unless
@pods
run_install_with_update
(
true
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment