Class: Gvcs::Vcs

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

Overview

common operations

Instance Method Summary collapse

Methods included from GitCli::Clone

#clone

Methods included from GitCli::Init

#init, #reset

Methods included from GitCli::GitCore

#exe_path, #version

Methods included from GitCli::Common

#log_debug, #log_error, #log_warn, #os_exec

Constructor Details

#initializeVcs

Returns a new instance of Vcs.



81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/git_cli.rb', line 81

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