Sha256: fd0a0215c67a3e8130f113bdcebff07285bd57bdb0b08ec05cd042053fc75a00

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# coding: utf-8
require 'chef/log'
require_relative 'changelog'

class KnifeChangelog
  class GitSubmodule < Changelog

    def run(submodules)
      raise ::ArgumentError, "Submodules must be an Array instead of #{submodules.inspect}" unless submodules.is_a?(::Array)
      submodules.map do |submodule|
        Chef::Log.debug "Checking changelog for #{submodule} (submodule)"
        format_changelog(submodule, *handle_submodule(submodule))
      end.compact.join("\n")
    ensure
      clean
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife-changelog-2.0.0 lib/knife/changelog/git_submodule.rb
knife-changelog-1.7.0 lib/knife/changelog/git_submodule.rb
knife-changelog-1.6.0 lib/knife/changelog/git_submodule.rb