Sha256: a7377bb7050f5fffa23be22b94f98d9f678d929ce517a48f2784b1b028962c55
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require 'chef/knife' require 'mixlib/shellout' class Chef class Knife class Changelog < Knife banner 'knife changelog COOKBOOK [COOKBOOK ...]' deps do require 'knife/changelog/policyfile' end option :prevent_downgrade, long: '--prevent-downgrade', description: 'Fail if knife-changelog detect a cookbook downgrade', boolean: true, default: false option :policyfile, long: '--policyfile PATH', description: 'Link to policyfile, defaults to "Policyfile.rb"', default: 'Policyfile.rb' option :with_dependencies, long: '--with-dependencies', description: 'Show changelog for cookbook in Policyfile with dependencies', boolean: true, default: false def run Log.info config.to_s puts PolicyChangelog.new( @name_args, config[:policyfile], config[:with_dependencies] ).generate_changelog(config[:prevent_downgrade]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
knife-changelog-4.1.0 | lib/chef/knife/changelog.rb |
knife-changelog-4.0.0 | lib/chef/knife/changelog.rb |