Commit fe403b85 authored by Fabio Pelosin's avatar Fabio Pelosin

[Source] Allow the specify the master repo dir from an environment variable.

The variable is `CP_MASTER_REPO_DIR` and potentially paves the way for
supporting a deeper linting of CocoaPods/Specs. Every check would be
supported, including checking that the files patterns match, except
xcodebuild checks.
parent fae61d3d
...@@ -6,12 +6,16 @@ module Pod ...@@ -6,12 +6,16 @@ module Pod
end end
def dirs def dirs
repos_dir = Config.instance.repos_dir if ENV['CP_MASTER_REPO_DIR']
unless repos_dir.exist? [Pathname.new(ENV['CP_MASTER_REPO_DIR'])]
raise Informative, "No spec repos found in `#{repos_dir}'. " \ else
"To fetch the `master' repo run: $ pod setup" repos_dir = Config.instance.repos_dir
unless repos_dir.exist?
raise Informative, "No spec repos found in `#{repos_dir}'. " \
"To fetch the `master' repo run: $ pod setup"
end
repos_dir.children.select(&:directory?)
end end
repos_dir.children.select(&:directory?)
end end
def names def names
......
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