Sha256: fc8e3edd2357dc82de8f2e4f404b0651376b4ec641b49e777ff4c24e6835ce0d

Contents?: true

Size: 432 Bytes

Versions: 101

Compression:

Stored size: 432 Bytes

Contents

module ::ProxyAPI
  class Migration < ::ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + '/compliance-importer'
      super args
      @connect_params[:headers].merge!(:content_type => 'text/xml', :content_encoding => 'x-bzip2', :multipart => true)
    end

    def migrate_arf_report(arf_file, host_name, policy_id, date)
      parse(post(arf_file, "/arf/#{host_name}/#{policy_id}/#{date}"))
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
foreman_openscap-10.0.2 app/lib/proxy_api/migration.rb
foreman_openscap-10.0.1 app/lib/proxy_api/migration.rb
foreman_openscap-10.0.0 app/lib/proxy_api/migration.rb
foreman_openscap-9.0.4 app/lib/proxy_api/migration.rb
foreman_openscap-9.0.3 app/lib/proxy_api/migration.rb
foreman_openscap-9.0.2 app/lib/proxy_api/migration.rb
foreman_openscap-9.0.1 app/lib/proxy_api/migration.rb
foreman_openscap-9.0.0 app/lib/proxy_api/migration.rb
foreman_openscap-8.0.0 app/lib/proxy_api/migration.rb
foreman_openscap-7.1.1 app/lib/proxy_api/migration.rb
foreman_openscap-7.1.0 app/lib/proxy_api/migration.rb
foreman_openscap-7.0.0 app/lib/proxy_api/migration.rb
foreman_openscap-6.0.0 app/lib/proxy_api/migration.rb
foreman_openscap-5.2.3 app/lib/proxy_api/migration.rb
foreman_openscap-5.2.2 app/lib/proxy_api/migration.rb
foreman_openscap-5.1.1 app/lib/proxy_api/migration.rb
foreman_openscap-5.2.1 app/lib/proxy_api/migration.rb
foreman_openscap-5.2.0 app/lib/proxy_api/migration.rb
foreman_openscap-5.1.0 app/lib/proxy_api/migration.rb
foreman_openscap-5.0.0 app/lib/proxy_api/migration.rb