diff options
author | Nick LaMuro <nicklamuro@gmail.com> | 2016-07-25 18:41:53 -0500 |
---|---|---|
committer | Nick LaMuro <nicklamuro@gmail.com> | 2016-07-25 21:44:01 -0500 |
commit | 75f1f1757f6e169b3b6c3481f74e9033956c704b (patch) | |
tree | f89d4956fb825179578f7c513fcf1ef653ec68a3 /lib/bundler/source | |
parent | 1838c66f27b9668e278c7ee6ac7965a445b629cb (diff) | |
download | bundler-75f1f1757f6e169b3b6c3481f74e9033956c704b.tar.gz |
Add Bundler::Source::Git::GitProxy#full_version
Adds a full_version method that can be used to display the OS specific
info. Useful when printing the environment information in the
Bundler::Env
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index feb8d013..84ff5283 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -83,6 +83,10 @@ module Bundler git("--version").match(/(git version\s*)?((\.?\d+)+).*/)[2] end + def full_version + git("--version").sub("git version", "").strip + end + def checkout if path.exist? return if has_revision_cached? |