mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-04-29 01:45:36 +08:00
[Installer] Don't show using existing documentation message if docs should be skipped
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user