Commit 69ae4cc8 authored by Fabio Pelosin's avatar Fabio Pelosin

[Documentation] Improved #already_installed?

parent aaa4a8dc
...@@ -71,7 +71,9 @@ module Pod ...@@ -71,7 +71,9 @@ module Pod
end end
def already_installed? def already_installed?
Pathname.new(File.expand_path("~/Library/Developer/Shared/Documentation/DocSets/org.cocoapods.#{name.gsub(/ /,'-')}.docset")).exist? index = spec_appledoc_options.index('--company-id')
company_id = index ? spec_appledoc_options[index + 1] : docs_id
Pathname.new(File.expand_path("~/Library/Developer/Shared/Documentation/DocSets/#{company_id}.#{name.gsub(/ /,'-')}.docset")).exist?
end end
def generate(install = false) def generate(install = false)
......
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