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
.branch_name(version, vcs_options) ⇒ Object
24
25
26
27
|
# 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) ⇒ Object
29
30
31
32
33
34
|
# 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
|