Sha256: fba69a0beab00627d96811c9734ee99444c05165e968916347d350d986cd85be

Contents?: true

Size: 920 Bytes

Versions: 8

Compression:

Stored size: 920 Bytes

Contents

require 'hammer_cli_foreman/host'
require 'hammer_cli_foreman_openscap/host_extensions'

module HammerCLIForemanOpenscap
  class Host < HammerCLIForeman::Command
    resource :hosts

    class PoliciesEnc < HammerCLIForeman::ListCommand
      command_name "policies-enc"
      action :policies_enc

      output do
        field :id, _('Id')
        field :profile_id, _('Profile Id')
        field :content_path, _('Content path')
        field :download_path, _('Content download path')
        field :tailoring_path, _('Tailoring path')
        field :tailoring_download_path, _('Tailoring download path')
        field :monthday, _('Day of month')
        field :hour, _('Hour')
        field :minute, ('Minute')
        field :month, _('Month')
        field :week, _('Week')
      end

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

      build_options
    end
    autoload_subcommands
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hammer_cli_foreman_openscap-0.2.1 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.2.0 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.13 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.12 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.11 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.10 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.9 lib/hammer_cli_foreman_openscap/host.rb
hammer_cli_foreman_openscap-0.1.8 lib/hammer_cli_foreman_openscap/host.rb