Class: Hasmenu::Cli

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

Instance Method Summary collapse

Instance Method Details

#__print_versionObject



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

def __print_version
  puts Hasmenu::VERSION
end

#build(type, uid = nil, menu_uid = nil) ⇒ Object



43
44
45
# File 'lib/hasmenu.rb', line 43

def build(type, uid = nil, menu_uid = nil)
  Hasmenu::Builder.new(type, options).build(uid, menu_uid)
end

#format(type, path) ⇒ Object



21
22
23
# File 'lib/hasmenu.rb', line 21

def format(type, path)
  Hasmenu::Formatter.new(type, options).format(path)
end

#report(type) ⇒ Object



50
51
52
# File 'lib/hasmenu.rb', line 50

def report(type)
  Hasmenu::Reporter.new(type, options).report
end

#spellcheck(path) ⇒ Object



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

def spellcheck(path)
  Hasmenu::SpellChecker.new(options).check(path)
end

#validate(type, path) ⇒ Object



36
37
38
# File 'lib/hasmenu.rb', line 36

def validate(type, path)
  Hasmenu::Validator.new(type, options).perform(path)
end