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
8fe74160
Commit
8fe74160
authored
Jul 17, 2012
by
David Venable
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #405 from dlvenable/pod-push-no-remote
Added --local-only to pod push
parents
e297e2ee
3c7ff4ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
push.rb
lib/cocoapods/command/push.rb
+4
-2
No files found.
lib/cocoapods/command/push.rb
View file @
8fe74160
...
@@ -14,7 +14,8 @@ module Pod
...
@@ -14,7 +14,8 @@ module Pod
end
end
def
self
.
options
def
self
.
options
[[
"--allow-warnings"
,
"Allows to push if warnings are not evitable"
]].
concat
(
super
)
[
[
"--allow-warnings"
,
"Allows to push if warnings are not evitable"
],
[
"--local-only"
,
"Does not perform the step of pushing REPO to its remote"
]
].
concat
(
super
)
end
end
extend
Executable
extend
Executable
...
@@ -22,6 +23,7 @@ module Pod
...
@@ -22,6 +23,7 @@ module Pod
def
initialize
(
argv
)
def
initialize
(
argv
)
@allow_warnings
=
argv
.
option
(
'--allow-warnings'
)
@allow_warnings
=
argv
.
option
(
'--allow-warnings'
)
@local_only
=
argv
.
option
(
'--local-only'
)
@repo
=
argv
.
shift_argument
@repo
=
argv
.
shift_argument
@podspec
=
argv
.
shift_argument
@podspec
=
argv
.
shift_argument
super
unless
argv
.
empty?
&&
@repo
super
unless
argv
.
empty?
&&
@repo
...
@@ -32,7 +34,7 @@ module Pod
...
@@ -32,7 +34,7 @@ module Pod
check_repo_status
check_repo_status
update_repo
update_repo
add_specs_to_repo
add_specs_to_repo
push_repo
push_repo
unless
@local_only
puts
puts
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