Class: Giticious::Check
- Inherits:
-
Object
- Object
- Giticious::Check
- Defined in:
- lib/giticious/check.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/giticious/check.rb', line 7 def self.run if self.git_installed? == false raise RuntimeError, "Git is not installed" end if self.repository_dir_exists? == false raise RuntimeError, "Repository dir not found! Please run the init command" end if self.ssh_alive? == false raise RuntimeError, "SSH service not listening on Port 22! Please enable it and use public key auth" end end |