Module: VersionManager::VCS

Defined in:
lib/version-manager/vcs.rb,
lib/version-manager/vcs/git.rb

Defined Under Namespace

Classes: BranchAlreadyExistsError, Git, UnsupportedVCSError

Class Method Summary collapse

Class Method Details

.buildObject



23
24
25
26
27
28
# File 'lib/version-manager/vcs.rb', line 23

def self.build
  case VersionManager.options[:vcs][:name]
  when 'git' then VersionManager::VCS::Git.new(VersionManager.options[:vcs][:options])
  else raise UnsupportedVCSError
  end
end