Sha256: 7c015405e766960d5199d7cdc1e118f8273ca7d6cd8966a947ef2d9633aca268
Contents?: true
Size: 936 Bytes
Versions: 16
Compression:
Stored size: 936 Bytes
Contents
module HammerCLIForeman module CommandExtensions class PuppetEnvironment < HammerCLI::CommandExtensions # Remove when support of --environment options is ended. option '--environment', 'ENVIRONMENT_NAME', _('Environment name'), attribute_name: :option_environment_name, deprecated: { '--environment' => _('Use --puppet-environment instead') } option '--environment-id', 'ENVIRONMENT_ID', _(''), format: HammerCLI::Options::Normalizers::Number.new, attribute_name: :option_environment_id, deprecated: { '--environment-id' => _('Use --puppet-environment-id instead') } option_sources do |sources, command| sources.find_by_name('IdResolution').insert_relative( :after, 'IdParams', HammerCLIForeman::OptionSources::PuppetEnvironmentParams.new(command) ) sources end end end end
Version data entries
16 entries across 16 versions & 1 rubygems