17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/thor-scmversion.rb', line 17
def bump(type, prerelease_type = nil)
current_version.bump! type, options.merge(prerelease_type: prerelease_type)
begin
say "Creating and pushing tags", :yellow
current_version.tag
say "Writing files: #{version_files.join(', ')}", :yellow
write_version
say "Tagged: #{current_version}", :green
rescue => e
say "Tagging #{current_version} failed due to error", :red
say e.to_s, :red
if e.respond_to? :status_code
exit e.status_code
else
exit 1
end
end
end
|