Class: ProxyAPI::Migration
- Inherits:
-
Resource
- Object
- Resource
- ProxyAPI::Migration
- Defined in:
- app/lib/proxy_api/migration.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Migration
constructor
A new instance of Migration.
- #migrate_arf_report(arf_file, host_name, policy_id, date) ⇒ Object
Constructor Details
#initialize(args) ⇒ Migration
Returns a new instance of Migration.
3 4 5 6 7 |
# File 'app/lib/proxy_api/migration.rb', line 3 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 |
Instance Method Details
#migrate_arf_report(arf_file, host_name, policy_id, date) ⇒ Object
9 10 11 |
# File 'app/lib/proxy_api/migration.rb', line 9 def migrate_arf_report(arf_file, host_name, policy_id, date) parse(post(arf_file, "/arf/#{host_name}/#{policy_id}/#{date}")) end |