Sha256: 3a29a1e76009952622f13e3c14c1a002a6fc77b01ebacf9e0154e7b734842b9e
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 Bytes
Contents
require 'hiera/backend/eyaml/subcommand' require 'hiera/backend/eyaml' class Hiera module Backend module Eyaml module Subcommands class Version < Subcommand def self.options [] end def self.description 'show version information' end def self.execute plugin_versions = {} Eyaml::LoggingHelper.info "hiera-eyaml (core): #{Eyaml::VERSION}" Plugins.plugins.each do |plugin| plugin_shortname = plugin.name.split('hiera-eyaml-').last plugin_version = begin Encryptor.find(plugin_shortname)::VERSION.to_s rescue StandardError 'unknown (is plugin compatible with eyaml 2.0+ ?)' end Eyaml::LoggingHelper.info "hiera-eyaml-#{plugin_shortname} (gem): #{plugin_version}" end nil end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hiera-eyaml-4.2.0 | lib/hiera/backend/eyaml/subcommands/version.rb |