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
268c3b29
Commit
268c3b29
authored
Oct 22, 2011
by
Nolan Waite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`pod install` can take a project
parent
31a02728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
install.rb
lib/cocoapods/command/install.rb
+11
-7
No files found.
lib/cocoapods/command/install.rb
View file @
268c3b29
...
@@ -4,10 +4,11 @@ module Pod
...
@@ -4,10 +4,11 @@ module Pod
def
self
.
banner
def
self
.
banner
%{Installing dependencies of a pod spec:
%{Installing dependencies of a pod spec:
$ pod install [NAME]
$ pod install [NAME]
[PROJECT]
Downloads all dependencies of the specified podspec file `NAME' and
Downloads all dependencies of the specified podspec file `NAME',
creates an Xcode Pods library project in `./Pods'. In case `NAME' is
creates an Xcode Pods library project in `./Pods', and sets up `PROJECT'
to use the specified pods (if `PROJECT' is given). In case `NAME' is
omitted it defaults to either `Podfile' or `*.podspec' in the current
omitted it defaults to either `Podfile' or `*.podspec' in the current
working directory.
working directory.
}
}
...
@@ -20,9 +21,10 @@ module Pod
...
@@ -20,9 +21,10 @@ module Pod
def
initialize
(
argv
)
def
initialize
(
argv
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
if
podspec
=
argv
.
shift_argument
projpath
=
argv
.
shift_argument
@podspec
=
Pathname
.
new
(
podspec
)
projpath
=~
/\.xcodeproj$/
?
@projpath
=
projpath
:
podspec
=
projpath
end
@podspec
=
Pathname
.
new
(
podspec
)
if
podspec
@projpath
||=
argv
.
shift_argument
super
unless
argv
.
empty?
super
unless
argv
.
empty?
end
end
...
@@ -39,7 +41,9 @@ module Pod
...
@@ -39,7 +41,9 @@ module Pod
raise
Informative
,
"No `Podfile' or `.podspec' file found in the current working directory."
raise
Informative
,
"No `Podfile' or `.podspec' file found in the current working directory."
end
end
end
end
Installer
.
new
(
spec
).
install!
installer
=
Installer
.
new
(
spec
)
installer
.
install!
installer
.
configure_project
(
@projpath
)
if
@projpath
end
end
end
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