class Hiera::Backend::Eyaml::Subcommands::Version

Public Class Methods

description() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/version.rb, line 13
def self.description
  'show version information'
end
execute() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/version.rb, line 17
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
options() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/version.rb, line 9
def self.options
  []
end