summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-04-21 11:40:34 +0100
committerGitHub <noreply@github.com>2017-04-21 11:40:34 +0100
commitf77a70b72717341de934c3e51300074295310673 (patch)
treee9b0af9355d18d765c1dd1480e46217ed09f1428
parentdea64bb5855115fb82f59843ccc6cc74457b4b17 (diff)
parentdebd2f83b5697aaf6c1bfb57e51555f19c125e7a (diff)
downloadchef-f77a70b72717341de934c3e51300074295310673.tar.gz
Merge pull request #6068 from ranjib/offline
(chore)fetch latest stable version only if its required
-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