lib/heroku_release.rb in heroku_release-0.2.3 vs lib/heroku_release.rb in heroku_release-0.2.4

- old
+ new

@@ -32,10 +32,11 @@ execute "git push #{config.heroku_remote} master" end def tag release_name = get_release_name + tag_comment = get_tag_comment quoted_tag_comment = single_quote(tag_comment) if config.version_file_path || config.changelog_path if config.version_file_path output "Updating version file at #{config.version_file_path}" @@ -100,10 +101,10 @@ def single_quote(string) string.gsub("'") { %q{'\''} } # quote single quotes end - def tag_comment + def get_tag_comment return ENV['COMMENT'] if ENV['COMMENT'] if config.prompt_for_comments print "Required - please enter a release comment: " $stdin.gets.strip else