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
e6c4a42a
Commit
e6c4a42a
authored
Feb 25, 2012
by
Luke Redpath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have install_dependencies! return an array of LocalPod instances so they can be used
throughout the installation process.
parent
dca4cb2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
installer.rb
lib/cocoapods/installer.rb
+17
-16
No files found.
lib/cocoapods/installer.rb
View file @
e6c4a42a
...
@@ -57,21 +57,22 @@ module Pod
...
@@ -57,21 +57,22 @@ module Pod
end
end
def
install_dependencies!
def
install_dependencies!
build_specifications
.
each
do
|
spec
|
build_specifications
.
map
do
|
spec
|
if
spec
.
pod_destroot
.
exist?
||
spec
.
local?
Pod
.
new
(
sandbox
,
spec
).
tap
do
|
pod
|
message
=
"Using
#{
spec
}
"
if
spec
.
pod_destroot
.
exist?
||
spec
.
local?
message
+=
" [LOCAL]"
if
spec
.
local?
message
=
"Using
#{
spec
}
"
puts
message
unless
config
.
silent?
message
+=
" [LOCAL]"
if
spec
.
local?
else
puts
message
unless
config
.
silent?
puts
"Installing
#{
spec
}
"
unless
config
.
silent?
else
spec
=
spec
.
part_of_specification
if
spec
.
part_of_other_pod?
puts
"Installing
#{
spec
}
"
unless
config
.
silent?
pod
=
Pod
.
new
(
sandbox
,
spec
)
spec
=
spec
.
part_of_specification
if
spec
.
part_of_other_pod?
downloader
=
Downloader
.
for_pod
(
pod
)
downloader
=
Downloader
.
for_pod
(
pod
)
downloader
.
download
downloader
.
download
if
config
.
clean
if
config
.
clean
downloader
.
clean
downloader
.
clean
pod
.
clean
pod
.
clean
end
end
end
end
end
end
end
...
@@ -79,7 +80,7 @@ module Pod
...
@@ -79,7 +80,7 @@ module Pod
def
install!
def
install!
puts
"Installing dependencies of:
#{
@podfile
.
defined_in_file
}
"
if
config
.
verbose?
puts
"Installing dependencies of:
#{
@podfile
.
defined_in_file
}
"
if
config
.
verbose?
install_dependencies!
pods
=
install_dependencies!
root
=
config
.
project_pods_root
root
=
config
.
project_pods_root
headers_symlink_root
=
config
.
headers_symlink_root
headers_symlink_root
=
config
.
headers_symlink_root
...
...
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