Class: Debci::HTML::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/debci/html/cli.rb', line 19

def self.exit_on_failure?
  true
end

Instance Method Details

#updateObject



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

def update
  Debci::HTML.update
end

#update_package(pkg) ⇒ Object



14
15
16
17
# File 'lib/debci/html/cli.rb', line 14

def update_package(pkg)
  package = Debci::Package.where(name: pkg).first
  Debci::HTML.update_package(package)
end