Class: Techbook::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/techbook/cli.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



20
21
22
23
24
25
26
27
28
# File 'lib/techbook/cli.rb', line 20

def build
  Builder.run pdf: options[:pdf],
              mobi: options[:mobi],
              epub: options[:epub],
              html: options[:html],
              docbook: options[:docbook],
              output: options[:output],
              watch: options[:watch]
end

#generate(name) ⇒ Object



9
10
11
# File 'lib/techbook/cli.rb', line 9

def generate(name)
  Generator::run name, output: options[:output]
end