Method: Autobuild::Git.at_least_version

Defined in:
lib/autobuild/import/git.rb

.at_least_version(*version) ⇒ Boolean

Tests the git version

Parameters:

  • version (Array<Integer>)

    the git version as an array of integer

Returns:

  • (Boolean)

    true if the git version is at least the requested one, and false otherwise



115
116
117
# File 'lib/autobuild/import/git.rb', line 115

def self.at_least_version(*version)
    compare_versions(self.version, version) <= 0
end