Class: Neurogami::Rhesus::Installer
- Inherits:
-
Object
- Object
- Neurogami::Rhesus::Installer
- Includes:
- Common
- Defined in:
- lib/rhesus/installer.rb
Class Method Summary collapse
Methods included from Common
Class Method Details
.git_repo_clone(repo_url) ⇒ Object
28 29 30 |
# File 'lib/rhesus/installer.rb', line 28 def git_repo_clone repo_url warn `git clone #{repo_url}` end |
.install_from_repo(repo_url) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rhesus/installer.rb', line 16 def install_from_repo repo_url raise InstallationError.new("No ~/.rhesus folder") unless user_dir_exists? begin Dir.chdir(user_template_directory) do git_repo_clone repo_url end rescue Exception raise InstallationError.new("Error cloning repo: #{$!}") end end |