summaryrefslogtreecommitdiff
path: root/tasks/changelog.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/changelog.rb')
-rw-r--r--tasks/changelog.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/changelog.rb b/tasks/changelog.rb
index 8484acde24..1f969637c3 100644
--- a/tasks/changelog.rb
+++ b/tasks/changelog.rb
@@ -4,7 +4,9 @@ begin
namespace :changelog do
# Fetch the latest version from mixlib-install
- latest_stable_version = Mixlib::Install.available_versions("chef", "stable").last
+ def latest_stable_version
+ Mixlib::Install.available_versions("chef", "stable").last
+ end
# Take the changelog from the latest stable release and put it into history.
task :archive do