Module: Bearcat::Client::ContentMigrations
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/content_migrations.rb
Instance Method Summary collapse
Instance Method Details
#upload_content_package(api_path, file_path, params = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/bearcat/client/content_migrations.rb', line 5 def upload_content_package(api_path, file_path, params = {}) response = post(api_path, params) = response['pre_attachment'] confirmation_url = post_file(['upload_url'], ['upload_params'], file_path) confirm_file_upload(confirmation_url) end |