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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
installer.rb
lib/cocoapods/installer.rb
+4
-3
No files found.
lib/cocoapods/installer.rb
View file @
e6c4a42a
...
@@ -57,7 +57,8 @@ module Pod
...
@@ -57,7 +57,8 @@ module Pod
end
end
def
install_dependencies!
def
install_dependencies!
build_specifications
.
each
do
|
spec
|
build_specifications
.
map
do
|
spec
|
Pod
.
new
(
sandbox
,
spec
).
tap
do
|
pod
|
if
spec
.
pod_destroot
.
exist?
||
spec
.
local?
if
spec
.
pod_destroot
.
exist?
||
spec
.
local?
message
=
"Using
#{
spec
}
"
message
=
"Using
#{
spec
}
"
message
+=
" [LOCAL]"
if
spec
.
local?
message
+=
" [LOCAL]"
if
spec
.
local?
...
@@ -65,7 +66,6 @@ module Pod
...
@@ -65,7 +66,6 @@ module Pod
else
else
puts
"Installing
#{
spec
}
"
unless
config
.
silent?
puts
"Installing
#{
spec
}
"
unless
config
.
silent?
spec
=
spec
.
part_of_specification
if
spec
.
part_of_other_pod?
spec
=
spec
.
part_of_specification
if
spec
.
part_of_other_pod?
pod
=
Pod
.
new
(
sandbox
,
spec
)
downloader
=
Downloader
.
for_pod
(
pod
)
downloader
=
Downloader
.
for_pod
(
pod
)
downloader
.
download
downloader
.
download
...
@@ -76,10 +76,11 @@ module Pod
...
@@ -76,10 +76,11 @@ module Pod
end
end
end
end
end
end
end
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