Class: VimSitter::System
- Inherits:
-
Object
- Object
- VimSitter::System
- Defined in:
- lib/vim_sitter/system.rb
Class Method Summary collapse
Class Method Details
.app_installed?(app) ⇒ Boolean
13 14 15 16 17 18 19 20 |
# File 'lib/vim_sitter/system.rb', line 13 def self.app_installed? app begin `#{app} --version` rescue return false end return true end |
.git_installed? ⇒ Boolean
5 6 7 |
# File 'lib/vim_sitter/system.rb', line 5 def self.git_installed? app_installed? 'git' end |
.vim_installed? ⇒ Boolean
9 10 11 |
# File 'lib/vim_sitter/system.rb', line 9 def self.vim_installed? app_installed? 'vim' end |