Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c69e73438b
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.39 kB
class Versioner
attr_accessor :current_version
def initialize(current_version, version_files)
@current_version = current_version
@version_files = version_files
end
def bump!(kind)
@current_version = Versionomy.parse(@current_version).bump(kind).to_s
@version_files.each { |file| File.open(file, 'w') { |f| f.puts @current_version } }
@current_version
end
end
Jump to Line
Something went wrong with that request. Please try again.