Class: AwesomeAnnotate::CLI
- Inherits:
-
Thor
- Object
- Thor
- AwesomeAnnotate::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/awesome_annotate/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #all ⇒ Object
- #model(model_name) ⇒ Object
- #models(*model_names) ⇒ Object
- #print_version ⇒ Object
- #routes ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
68 69 70 |
# File 'lib/awesome_annotate/cli.rb', line 68 def self.exit_on_failure? true end |
Instance Method Details
#all ⇒ Object
60 61 62 63 |
# File 'lib/awesome_annotate/cli.rb', line 60 def all AwesomeAnnotate::Model.new.annotate_all AwesomeAnnotate::Route.new.annotate end |
#model(model_name) ⇒ Object
44 45 46 |
# File 'lib/awesome_annotate/cli.rb', line 44 def model(model_name) AwesomeAnnotate::Model.new.annotate(model_name) end |
#models(*model_names) ⇒ Object
49 50 51 |
# File 'lib/awesome_annotate/cli.rb', line 49 def models(*model_names) AwesomeAnnotate::Model.new.annotate_all(model_names) end |
#print_version ⇒ Object
38 39 40 |
# File 'lib/awesome_annotate/cli.rb', line 38 def print_version say AwesomeAnnotate::VERSION end |
#routes ⇒ Object
55 56 57 |
# File 'lib/awesome_annotate/cli.rb', line 55 def routes AwesomeAnnotate::Route.new.annotate end |