Class: Chef::Knife::Changelog
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::Changelog
- Defined in:
- lib/chef/knife/changelog.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/chef/knife/changelog.rb', line 66 def run Log.info config.to_s if config[:policyfile] && File.exist?(config[:policyfile]) puts PolicyChangelog.new( @name_args, config[:policyfile], config[:with_dependencies] ).generate_changelog else berksfile = Berkshelf::Berksfile.({}) puts KnifeChangelog::Changelog::Berksfile .new(berksfile, config) .run(@name_args) end end |