Sha256: c527933d39bee7ab88b43fb4c6e7586e0293eeeb86731825f4363cc7456afe1f
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
module ForemanOpenscap class TailoringFile < ApplicationRecord include Authorizable include Taxonomix include DataStreamContent audited :except => [:scap_file] has_many :policies has_many :scap_content_profiles, :dependent => :destroy validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 255 } scoped_search :on => :name, :complete_value => true scoped_search :on => :original_filename, :complete_value => true, :rename => :filename def fetch_profiles api = ProxyAPI::Openscap.new(:url => proxy_url) api.fetch_profiles_for_tailoring_file(scap_file) end end end
Version data entries
6 entries across 6 versions & 1 rubygems