Commit 3c7ff4ed authored by David Venable's avatar David Venable

Added a --local-only option to pod push so that developers can push locally and…

Added a --local-only option to pod push so that developers can push locally and test before pushing to a remote.
parent 0920c423
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment