Sha256: 11e9337b5305eb4d1ffacf10d17b1787377b21f1cb2d8078357ee4dc40a99068
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
module ForemanOpenscap class TailoringFile < ApplicationRecord include Authorizable include Taxonomix include DataStreamContent 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_openscap-0.8.0 | app/models/foreman_openscap/tailoring_file.rb |
foreman_openscap-0.7.3 | app/models/foreman_openscap/tailoring_file.rb |