Sha256: b8ac84bd51a2912d4ac782ea78587a02f6da02bb4870f05dcac6f6e49c167dea
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require 'hiera/backend/eyaml/subcommand' class Hiera module Backend module Eyaml module Subcommands class UnknownCommand < Eyaml::Subcommand class << self attr_accessor :original_command end @@original_command = 'unknown' def self.options [] end def self.description "Unknown command (#{@@original_command})" end def self.execute subcommands = Eyaml.subcommands puts <<~EOS Unknown subcommand#{': ' + Eyaml.subcommand if Eyaml.subcommand} Usage: eyaml <subcommand> Please use one of the following subcommands or help for more help: #{Eyaml.subcommands.sort.collect do |command| command_class = Subcommands.const_get(Utils.camelcase(command)) command unless command_class.hidden? end.compact.join(', ')} EOS end def self.hidden? true 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/unknown_command.rb |