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

This commit is contained in:
Fabio Pelosin
2013-02-11 16:54:39 +01:00
parent cb975bb524
commit f389191f5e
3 changed files with 5 additions and 6 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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