Module: VPM::Git
- Defined in:
- lib/vpm/git.rb
Class Method Summary collapse
Class Method Details
.checkout_tag(tag) ⇒ Object
8 9 10 11 |
# File 'lib/vpm/git.rb', line 8 def self.checkout_tag(tag) `git checkout -b #{tag} #{tag}` $?.to_i == 0 end |
.clone(repo, dir) ⇒ Object
3 4 5 6 |
# File 'lib/vpm/git.rb', line 3 def self.clone(repo, dir) `git clone #{repo} #{dir}` $?.to_i == 0 end |
.current_revision ⇒ Object
13 14 15 |
# File 'lib/vpm/git.rb', line 13 def self.current_revision `git rev-parse --verify HEAD`.strip end |