Class: Ottogen::Otto

Inherits:
Thor
  • Object
show all
Defined in:
lib/ottogen/otto.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



15
16
17
# File 'lib/ottogen/otto.rb', line 15

def build
  Ottogen.build(drafts: options[:drafts])
end

#cleanObject



29
30
31
# File 'lib/ottogen/otto.rb', line 29

def clean
  Ottogen.clean
end

#doctorObject



52
53
54
# File 'lib/ottogen/otto.rb', line 52

def doctor
  Ottogen.doctor
end

#generate(page) ⇒ Object



22
23
24
# File 'lib/ottogen/otto.rb', line 22

def generate(page)
  Ottogen.generate(page)
end

#init(dir = nil) ⇒ Object



9
10
11
# File 'lib/ottogen/otto.rb', line 9

def init(dir = nil)
  Ottogen.init(dir)
end

#post(title) ⇒ Object



47
48
49
# File 'lib/ottogen/otto.rb', line 47

def post(title)
  Ottogen.new_post(title)
end

#serveObject



40
41
42
# File 'lib/ottogen/otto.rb', line 40

def serve
  Ottogen.serve
end

#watchObject



35
36
37
# File 'lib/ottogen/otto.rb', line 35

def watch
  Ottogen.watch(drafts: options[:drafts])
end