diff options
author | Thom May <thom@may.lt> | 2017-04-21 11:40:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 11:40:34 +0100 |
commit | f77a70b72717341de934c3e51300074295310673 (patch) | |
tree | e9b0af9355d18d765c1dd1480e46217ed09f1428 | |
parent | dea64bb5855115fb82f59843ccc6cc74457b4b17 (diff) | |
parent | debd2f83b5697aaf6c1bfb57e51555f19c125e7a (diff) | |
download | chef-f77a70b72717341de934c3e51300074295310673.tar.gz |
Merge pull request #6068 from ranjib/offline
(chore)fetch latest stable version only if its required
-rw-r--r-- | tasks/changelog.rb | 4 |
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 |