Class: RUGS::Git
- Inherits:
-
Object
- Object
- RUGS::Git
- Defined in:
- lib/rugs/git.rb
Overview
a very simple wrapper for git, only wraps what I nee
Class Method Summary collapse
Class Method Details
.init(repo_name) ⇒ Object
8 9 10 |
# File 'lib/rugs/git.rb', line 8 def self.init(repo_name) exec 'init', repo_name end |
.remote_add(repo_name, server, url) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rugs/git.rb', line 12 def self.remote_add(repo_name, server, url) pwd = FileUtils.pwd FileUtils.cd repo_name exec 'remote', 'add', server, url FileUtils.cd pwd end |