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
590edcea
Commit
590edcea
authored
May 19, 2016
by
Nate West
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5371 from CocoaPods/help-validation
[Repo Push] Help validation
parents
277eb7ad
fe5819e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
push.rb
lib/cocoapods/command/repo/push.rb
+1
-2
No files found.
lib/cocoapods/command/repo/push.rb
View file @
590edcea
...
@@ -49,14 +49,13 @@ module Pod
...
@@ -49,14 +49,13 @@ module Pod
end
end
def
validate!
def
validate!
super
help!
'A spec-repo name is required.'
unless
@repo
help!
'A spec-repo name is required.'
unless
@repo
unless
@source
.
repo
.
directory?
unless
@source
.
repo
.
directory?
raise
Informative
,
raise
Informative
,
"Unable to find the `
#{
@repo
}
` repo. "
\
"Unable to find the `
#{
@repo
}
` repo. "
\
'If it has not yet been cloned, add it via `pod repo add`.'
'If it has not yet been cloned, add it via `pod repo add`.'
end
end
super
end
end
def
run
def
run
...
...
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