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
421ddf80
Commit
421ddf80
authored
Apr 12, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check wether or not a pod and its docs should be installed _before_ it's actually installed.
parent
7ba66f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
installer.rb
lib/cocoapods/installer.rb
+4
-2
No files found.
lib/cocoapods/installer.rb
View file @
421ddf80
...
...
@@ -47,7 +47,9 @@ module Pod
LocalPod
.
new
(
spec
,
sandbox
).
tap
do
|
pod
|
marker
=
config
.
verbose
?
"
\n
-> "
.
green
:
''
if
pod
.
exists?
||
spec
.
local?
should_install
=
!
pod
.
exists?
&&
!
spec
.
local?
unless
should_install
puts
marker
+
"Using
#{
pod
}
"
unless
config
.
silent?
else
puts
marker
+
"Installing
#{
spec
}
"
.
green
unless
config
.
silent?
...
...
@@ -61,7 +63,7 @@ module Pod
end
end
if
(
!
pod
.
exists?
&&
!
pod
.
local?
&&
config
.
doc?
)
||
config
.
force_doc?
if
(
should_install
&&
config
.
doc?
)
||
config
.
force_doc?
puts
"Installing Documentation for
#{
spec
}
"
.
green
if
config
.
verbose?
Generator
::
Documentation
.
new
(
pod
).
generate
(
config
.
doc_install?
)
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