Class: Autowow::CLI
- Inherits:
-
Thor
- Object
- Thor
- Autowow::CLI
- Includes:
- EasyLogging
- Defined in:
- lib/autowow/cli.rb
Instance Method Summary collapse
- #add_upstream ⇒ Object
- #branch_merged ⇒ Object
- #clear_branches ⇒ Object
- #exec(*cmd) ⇒ Object
- #gem_clean ⇒ Object
- #gem_release ⇒ Object
- #greet ⇒ Object
- #hi ⇒ Object
- #hi! ⇒ Object
- #open ⇒ Object
- #rubocop_parallel_autocorrect ⇒ Object
- #ruby_versions ⇒ Object
- #update_projects ⇒ Object
Instance Method Details
#add_upstream ⇒ Object
49 50 51 |
# File 'lib/autowow/cli.rb', line 49 def add_upstream Autowow::Features::Vcs.add_upstream end |
#branch_merged ⇒ Object
29 30 31 |
# File 'lib/autowow/cli.rb', line 29 def branch_merged Autowow::Features::Vcs.branch_merged end |
#clear_branches ⇒ Object
44 45 46 |
# File 'lib/autowow/cli.rb', line 44 def clear_branches Autowow::Features::Vcs.clear_branches end |
#exec(*cmd) ⇒ Object
90 91 92 |
# File 'lib/autowow/cli.rb', line 90 def exec(*cmd) Autowow::Executor.pretty_with_output.run(cmd) end |
#gem_clean ⇒ Object
69 70 71 |
# File 'lib/autowow/cli.rb', line 69 def gem_clean Autowow::Features::Gem.gem_clean end |
#gem_release ⇒ Object
34 35 36 |
# File 'lib/autowow/cli.rb', line 34 def gem_release Autowow::Features::Gem.gem_release end |
#greet ⇒ Object
79 80 81 |
# File 'lib/autowow/cli.rb', line 79 def greet Autowow::Features::Vcs.greet end |
#hi ⇒ Object
54 55 56 |
# File 'lib/autowow/cli.rb', line 54 def hi Autowow::Features::Vcs.hi end |
#hi! ⇒ Object
59 60 61 |
# File 'lib/autowow/cli.rb', line 59 def hi! Autowow::Features::Vcs.hi! end |
#open ⇒ Object
64 65 66 |
# File 'lib/autowow/cli.rb', line 64 def open Autowow::Features::Vcs.open end |
#rubocop_parallel_autocorrect ⇒ Object
84 85 86 87 |
# File 'lib/autowow/cli.rb', line 84 def rubocop_parallel_autocorrect logger.warn('Experimental feature, in practice it is not faster than running `rubocop -a`!') Autowow::Features::Gem.rubocop_parallel_autocorrect end |
#ruby_versions ⇒ Object
74 75 76 |
# File 'lib/autowow/cli.rb', line 74 def ruby_versions Autowow::Features::Rbenv.ruby_versions end |
#update_projects ⇒ Object
39 40 41 |
# File 'lib/autowow/cli.rb', line 39 def update_projects Autowow::Features::Vcs.update_projects end |