Class: Bookbinder::Commands::UpdateLocalDocRepos

Inherits:
BookbinderCommand show all
Extended by:
Naming
Defined in:
lib/bookbinder/commands/update_local_doc_repos.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Naming

command_name

Methods inherited from BookbinderCommand

#initialize

Constructor Details

This class inherits a constructor from Bookbinder::Commands::BookbinderCommand

Class Method Details

.usageObject



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