Commit e4a605bb authored by Daniel Tomlinson's avatar Daniel Tomlinson Committed by Kyle Fuller

Move master repo checks to its own method

parent a878a8e0
...@@ -41,9 +41,7 @@ module Pod ...@@ -41,9 +41,7 @@ module Pod
def self.parse(argv) def self.parse(argv)
command = super command = super
unless SourcesManager.master_repo_functional? || command.is_a?(Setup) || command.is_a?(Repo::Add) || ENV['SKIP_SETUP']
Setup.new(CLAide::ARGV.new([])).run
end
command command
end end
...@@ -91,6 +89,16 @@ module Pod ...@@ -91,6 +89,16 @@ module Pod
end end
end end
# Ensure that the master spec repo exists
#
# @return [void]
#
def ensure_master_spec_repo_exists!
unless SourcesManager.master_repo_functional?
Setup.new(CLAide::ARGV.new([])).run
end
end
#-------------------------------------------------------------------------# #-------------------------------------------------------------------------#
include Config::Mixin include Config::Mixin
......
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