Commit 4d5e6cf1 authored by Eloy Duran's avatar Eloy Duran

Don't create a Documentation dir at all if appledoc isn't installed.

parent 14a9efac
...@@ -73,6 +73,10 @@ module Pod ...@@ -73,6 +73,10 @@ module Pod
end end
def generate(install = false) def generate(install = false)
unless self.class.appledoc_installed?
puts "[!] Skipping documentation generation because appledoc can't be found." if config.verbose?
return
end
options = generate_appledoc_options options = generate_appledoc_options
options += ['--output', @target_path.to_s] options += ['--output', @target_path.to_s]
options += ['--keep-intermediate-files'] options += ['--keep-intermediate-files']
...@@ -84,10 +88,6 @@ module Pod ...@@ -84,10 +88,6 @@ module Pod
end end
def appledoc(options) def appledoc(options)
unless self.class.appledoc_installed?
puts "\n[!] Skipping documentation generation because appledoc can't be found." unless config.silent?
return
end
arguments = [] arguments = []
arguments += options arguments += options
arguments += ['--print-settings'] if config.verbose? arguments += ['--print-settings'] if config.verbose?
......
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