Class: MakeBook::CLI
- Inherits:
-
Thor
- Object
- Thor
- MakeBook::CLI
- Defined in:
- lib/makebook/cli.rb
Overview
CLI commands
Instance Method Summary collapse
Instance Method Details
#build(*books) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/makebook/cli.rb', line 10 def build(*books) build = MakeBook::Build.new(out: [:out]) books = Pathname.glob("**/*#{MakeBook::EXT}") if books.empty? books.each do |book| puts "building #{book}" if [:verbose] build.build(book) end end |