Sha256: c612a843c654c66e2b95988ed40061002be3cf7570b3936c45d450b6af245c3a
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
require 'chef/knife' require 'mixlib/shellout' class Chef class Knife class Changelog < Knife banner 'knife changelog COOKBOOK [COOKBOOK ...]' deps do require "knife/changelog/version" require "knife/changelog/changelog" require "berkshelf" end def initialize(options) super berksfile = Berkshelf::Berksfile.from_options({}) @changelog = KnifeChangelog::Changelog.new(berksfile.lockfile.locks, config, berksfile.sources) end option :linkify, :short => '-l', :long => '--linkify', :description => 'add markdown links where relevant', :boolean => true option :markdown, :short => '-m', :long => '--markdown', :description => 'use markdown syntax', :boolean => true option :ignore_changelog_file, :long => '--ignore-changelog-file', :description => "Ignore changelog file presence, use git history instead", :boolean => true option :allow_update_all, :long => '--allow-update-all', :description => "If no cookbook given, check all Berksfile", :boolean => true, :default => true option :submodules, :long => '--submodules SUBMODULE[,SUBMODULE]', :description => 'Submoduless to check for changes as well (comma separated)' def run Log.info config changelog = @changelog.run(@name_args) puts changelog end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knife-changelog-0.5.20 | lib/chef/knife/changelog.rb |