module VersionManager::VCS

Public Class Methods

branch_name(version, vcs_options) click to toggle source
# File lib/version-manager/vcs.rb, line 24
def self.branch_name(version, vcs_options)
  version = ReleaseVersion.new(version) if version.is_a?(String)
  vcs_options[:version_name].call(version)
end
build(vcs_options) click to toggle source
# File lib/version-manager/vcs.rb, line 29
def self.build(vcs_options)
  case vcs_options[:name]
  when 'git' then VersionManager::VCS::Git.new(vcs_options[:options])
  else raise UnsupportedVCSError
  end
end