Sha256: 2281354d29fe578574b4dfcaea0a8270113fbd11989aab41417791f3d20873ea

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

require 'hammer_cli_foreman/auth_source_ldap'

module HammerCLIForeman

  class AuthSource < HammerCLIForeman::Command
    resource :auth_sources
    subcommand 'ldap', HammerCLIForeman::AuthSourceLdap.desc, HammerCLIForeman::AuthSourceLdap

    class ListCommand < HammerCLIForeman::ListCommand
      desc _('List all auth sources')

      output do
        field :id, _('Id')
        field :name, _('Name')
        field :type, _('Type of auth source')
      end

      build_options
    end

    class UpdateCommand < HammerCLIForeman::UpdateCommand
      desc _('Update organization and location for Auth Source')
      resource :auth_source_externals
  
      success_message _('Taxonomy updated.')
      failure_message _('Taxonomy not changed. Please check if appropriate auth source exists')

      build_options
    end

    autoload_subcommands
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hammer_cli_foreman-0.19.5 lib/hammer_cli_foreman/auth_source.rb
hammer_cli_foreman-0.19.4 lib/hammer_cli_foreman/auth_source.rb