Class: Vim::Flavor::CLI
- Inherits:
-
Thor
- Object
- Thor
- Vim::Flavor::CLI
- Defined in:
- lib/vim-flavor/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #install ⇒ Object
- #test(*files_or_dirs) ⇒ Object
- #update(*repo_names) ⇒ Object
- #upgrade(*repo_names) ⇒ Object
- #version ⇒ Object
Class Method Details
.common_options_to_deploy ⇒ Object
6 7 8 9 10 |
# File 'lib/vim-flavor/cli.rb', line 6 def self. method_option :vimfiles_path, :desc => 'Where to install Vim plugins.', :banner => 'DIR' end |
.exit_on_failure? ⇒ Boolean
57 58 59 |
# File 'lib/vim-flavor/cli.rb', line 57 def self.exit_on_failure? true end |
Instance Method Details
#install ⇒ Object
14 15 16 17 18 |
# File 'lib/vim-flavor/cli.rb', line 14 def install Facade.new().install( [:vimfiles_path] || default_vimfiles_path ) end |
#test(*files_or_dirs) ⇒ Object
42 43 44 |
# File 'lib/vim-flavor/cli.rb', line 42 def test(*files_or_dirs) Facade.new().test(files_or_dirs, ) end |
#update(*repo_names) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/vim-flavor/cli.rb', line 23 def update(*repo_names) Facade.new().update( [:vimfiles_path] || default_vimfiles_path, repo_names ) end |
#upgrade(*repo_names) ⇒ Object
33 34 35 |
# File 'lib/vim-flavor/cli.rb', line 33 def upgrade(*repo_names) update(*repo_names) end |
#version ⇒ Object
47 48 49 |
# File 'lib/vim-flavor/cli.rb', line 47 def version puts VERSION end |