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
2f294634
Commit
2f294634
authored
Nov 26, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Specification#install! and perform that work from Installer.
parent
d57722f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
29 deletions
+16
-29
installer.rb
lib/cocoapods/installer.rb
+12
-1
specification.rb
lib/cocoapods/specification.rb
+4
-28
No files found.
lib/cocoapods/installer.rb
View file @
2f294634
...
...
@@ -182,9 +182,20 @@ module Pod
end
.
compact
end
def
install_dependencies!
build_specifications
.
each
do
|
spec
|
if
spec
.
pod_destroot
.
exist?
puts
"Using
#{
spec
}
"
unless
config
.
silent?
else
puts
"Installing
#{
spec
}
"
unless
config
.
silent?
spec
.
download!
end
end
end
def
install!
puts
"Installing dependencies of:
#{
@podfile
.
defined_in_file
}
"
unless
config
.
silent?
build_specifications
.
each
(
&
:install!
)
install_dependencies!
root
=
config
.
project_pods_root
puts
"==> Generating support files"
unless
config
.
silent?
...
...
lib/cocoapods/specification.rb
View file @
2f294634
...
...
@@ -333,34 +333,6 @@ module Pod
# Install and download hooks
# Override this if you need to perform work before or after activating the
# pod. Eg:
#
# Pod::Spec.new do |s|
# def s.install!
# # pre-install
# super
# # post-install
# end
# end
#
# TODO Do we really need this now that we don’t install the podspec files anymore?
def
install!
puts
"==> Installing:
#{
self
}
"
unless
config
.
silent?
# In case this spec is part of another pod's source, we need to dowload
# the other pod's source.
(
part_of_specification
||
self
).
download_if_necessary!
end
def
download_if_necessary!
if
pod_destroot
.
exist?
puts
" * Skipping download of
#{
self
}
, pod already downloaded"
unless
config
.
silent?
else
puts
" * Downloading:
#{
self
}
"
unless
config
.
silent?
download!
end
end
# Downloads the source of the pod and places it in the project's pods
# directory.
#
...
...
@@ -375,10 +347,14 @@ module Pod
# end
# end
def
download!
if
spec
=
part_of_specification
spec
.
download!
else
downloader
=
Downloader
.
for_source
(
pod_destroot
,
source
)
downloader
.
download
downloader
.
clean
(
expanded_clean_paths
)
if
config
.
clean
end
end
# This is a convenience method which gets called after all pods have been
# downloaded, installed, and the Xcode project and related files have been
...
...
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