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

Version Path
hammer_cli_foreman-2.0.2 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-2.0.1 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-2.0.0 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.7 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.6 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.5 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.4 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.3 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.2 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.18.2 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.1 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.18.1 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.19.0 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.17.2 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.18.0 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb
hammer_cli_foreman-0.17.1 lib/hammer_cli_foreman/command_extensions/puppet_environment.rb