Sha256: c29cd562be11171bc03e8686898012734e539042397c5b8c4aee77e2da2c8204

Contents?: true

Size: 705 Bytes

Versions: 7

Compression:

Stored size: 705 Bytes

Contents

module HammerCLIForemanOpenscap
  class ScapContentProfile < HammerCLIForeman::Command
    resource :scap_content_profiles

    class ListCommand < HammerCLIForeman::ListCommand
      output do
        field :id, _("Id")
        field :title, _("Title")
        field :profile_id, _("Profile Id")
        from :scap_content do
          field :id, _("Scap Content Id")
          field :title, _("Scap Content Title")
        end
        from :tailoring_file do
          field :id, _("Tailoring File Id")
          field :name, _("Tailoring File Name")
        end
      end

      def adapter
        @context[:adapter] || :base
      end

      build_options
    end

    autoload_subcommands
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hammer_cli_foreman_openscap-0.2.2 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.2.1 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.2.0 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.1.13 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.1.12 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.1.11 lib/hammer_cli_foreman_openscap/scap_content_profile.rb
hammer_cli_foreman_openscap-0.1.10 lib/hammer_cli_foreman_openscap/scap_content_profile.rb