Class: GitCli::Vcs

Inherits:
Object
  • Object
show all
Includes:
Clone, Common, GitCore, Init, TR::CondUtils
Defined in:
lib/git_cli.rb

Overview

class Gvcs::Vcs

Instance Method Summary collapse

Methods included from Clone

#clone

Methods included from Init

#init, #reset

Methods included from GitCore

#exe_path, #version

Methods included from Common

#dry_run, #dry_run=, #log_debug, #log_error, #log_warn, #os_exec

Constructor Details

#initializeVcs

Returns a new instance of Vcs.



100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/git_cli.rb', line 100

def initialize
  # version check
  vst, tver = version
  if vst
    if (tver <=> MIN_GIT_VERSION) == -1
      log_warn("Min required version of GIT is #{MIN_GIT_VERSION}. System installed GIT is version #{tver}. The output might not be correct.") 
    end

    log_debug "System GIT version is #{tver}. Min require version is #{MIN_GIT_VERSION}"
  end
  
end