Class: Bookwatch::CLI
- Inherits:
-
Thor
- Object
- Thor
- Bookwatch::CLI
- Defined in:
- lib/bookwatch/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
10 11 12 |
# File 'lib/bookwatch/cli.rb', line 10 def self.exit_on_failure? true end |
Instance Method Details
#help(command = nil) ⇒ Object
24 25 26 |
# File 'lib/bookwatch/cli.rb', line 24 def help(command=nil) super end |
#version ⇒ Object
18 19 20 21 |
# File 'lib/bookwatch/cli.rb', line 18 def version gemspec = File.('../../../bookwatch.gemspec', __FILE__) say "bookwatch #{Gem::Specification::load(gemspec).version}" end |
#watch(*repos) ⇒ Object
64 65 66 67 |
# File 'lib/bookwatch/cli.rb', line 64 def watch(*repos) code = legacy_commands.watch(repos) raise Thor::Error, '' if code != 0 end |