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
ce53feaf
Commit
ce53feaf
authored
Nov 23, 2011
by
Martin Kavalar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Running `pod repo update` in `pod install` command. Closes #48.
parent
36361198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
install.rb
lib/cocoapods/command/install.rb
+5
-0
source.rb
lib/cocoapods/source.rb
+1
-2
No files found.
lib/cocoapods/command/install.rb
View file @
ce53feaf
...
@@ -19,11 +19,13 @@ module Pod
...
@@ -19,11 +19,13 @@ module Pod
def
self
.
options
def
self
.
options
" --no-clean Leave SCM dirs like `.git' and `.svn' in tact after downloading
\n
"
+
" --no-clean Leave SCM dirs like `.git' and `.svn' in tact after downloading
\n
"
+
" --no-update Skip running `pod repo update` before install
\n
"
+
super
super
end
end
def
initialize
(
argv
)
def
initialize
(
argv
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
@update_repo
=
!
argv
.
option
(
'--no-update'
)
@projpath
=
argv
.
shift_argument
@projpath
=
argv
.
shift_argument
super
unless
argv
.
empty?
super
unless
argv
.
empty?
end
end
...
@@ -35,6 +37,9 @@ module Pod
...
@@ -35,6 +37,9 @@ module Pod
if
@projpath
&&
!
File
.
exist?
(
@projpath
)
if
@projpath
&&
!
File
.
exist?
(
@projpath
)
raise
Informative
,
"The specified project `
#{
@projpath
}
' does not exist."
raise
Informative
,
"The specified project `
#{
@projpath
}
' does not exist."
end
end
if
@update_repo
Repo
.
new
(
ARGV
.
new
([
"update"
])).
run
end
installer
=
Installer
.
new
(
podfile
)
installer
=
Installer
.
new
(
podfile
)
installer
.
install!
installer
.
install!
installer
.
configure_project
(
@projpath
)
if
@projpath
installer
.
configure_project
(
@projpath
)
if
@projpath
...
...
lib/cocoapods/source.rb
View file @
ce53feaf
...
@@ -13,8 +13,7 @@ module Pod
...
@@ -13,8 +13,7 @@ module Pod
def
self
.
search
(
dependency
)
def
self
.
search
(
dependency
)
all
.
map
{
|
s
|
s
.
search
(
dependency
)
}.
compact
.
first
||
all
.
map
{
|
s
|
s
.
search
(
dependency
)
}.
compact
.
first
||
raise
(
Informative
,
"Unable to find a pod named `
#{
dependency
.
name
}
'.
\n
"
\
raise
(
Informative
,
"Unable to find a pod named `
#{
dependency
.
name
}
'"
)
"You might want to run `pod repo update` and try again."
)
end
end
def
self
.
search_by_name
(
query
,
full_text_search
)
def
self
.
search_by_name
(
query
,
full_text_search
)
...
...
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