Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (12 sloc) 553 Bytes
#!/usr/bin/env ruby
require File.dirname(__FILE__)+'/spec/dirs.rb'
repository = Archive::Repository.new
payload = Archive::InfochimpsPayload.new TEST_PAYLOADS_ROOT_DIR+"/complex",
:identifier => :sample_002,
:title => "Test File, please remove",
:description => 'Yes We Can speech, used as a test upload. Please delete me.',
:mediatype => 'software'
payload.copy_and_add_files ARCHIVE_ORG_SPEC_DIR+'/sample/sample_contents_file.txt'
payload.save_metadata!
repository.send(payload)
puts repository.notify_of_creation(payload)
Something went wrong with that request. Please try again.