module Releasetool::Util
Constants
- DIR
- RELEASE_MARKER_FILE
- TEMPLATE_FILE
- VERSION_FILE
Public Instance Methods
guarded_system(command)
click to toggle source
# File lib/releasetool/util.rb, line 18 def guarded_system(command) puts command system(command) or raise Thor::Error.new("Couldn't '#{command}'") end
remove_stored_version()
click to toggle source
# File lib/releasetool/util.rb, line 14 def remove_stored_version guarded_system("rm #{RELEASE_MARKER_FILE}") if File.exist?(RELEASE_MARKER_FILE) end
stored_version()
click to toggle source
# File lib/releasetool/util.rb, line 9 def stored_version fail Thor::Error.new("No stored version... did you forget to do release start?") unless File.exist?(RELEASE_MARKER_FILE) File.read(RELEASE_MARKER_FILE).strip end