Commit f389191f authored by Fabio Pelosin's avatar Fabio Pelosin

[Installer] Don't show using existing documentation message if docs should be skipped

parent cb975bb5
......@@ -75,12 +75,13 @@ module Pod
#TODO: move to generator ?
def generate_docs(pod)
doc_generator = Generator::Documentation.new(pod)
if ( config.generate_docs? && !doc_generator.already_installed? )
return unless config.generate_docs?
doc_generator = Generator::Documentation.new(pod)
if doc_generator.already_installed?
UI.section " > Using existing documentation"
else
UI.section " > Installing documentation"
doc_generator.generate(config.doc_install?)
else
UI.section " > Using existing documentation"
end
end
......
......@@ -23,7 +23,6 @@ Downloading dependencies
Cloning into 'ROOT/tmp/Pods/JSONKit'...
done.
$ /usr/bin/git checkout -b activated-pod-commit 0aff3deb5e1bb2bbc88a83fd71c8ad5550185cce
> Using existing documentation
-> Using Reachability (3.1.0)
......
......@@ -19,7 +19,6 @@ Downloading dependencies
$ /usr/bin/git reset --hard FETCH_HEAD
HEAD is now at f7176f4 updated podspec
$ /usr/bin/git checkout -b activated-pod-commit
> Using existing documentation
Generating support files
- Running pre install hooks
......
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