Class: Bookbinder::Commands::UpdateLocalDocRepos
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Naming
command_name
#initialize
Class Method Details
.usage ⇒ Object
9
10
11
|
# File 'lib/bookbinder/commands/update_local_doc_repos.rb', line 9
def self.usage
"update_local_doc_repos \t \t \t Run `git pull` on all sections that exist at the same directory level as your book directory"
end
|
Instance Method Details
#run(_) ⇒ Object
13
14
15
16
|
# File 'lib/bookbinder/commands/update_local_doc_repos.rb', line 13
def run(_)
config.sections.map { |conf| repo_for(conf) }.each(&:update_local_copy)
0
end
|