Method: CoderCompanion::API#notify_s3_upload
- Defined in:
- lib/codercompanion/api.rb
#notify_s3_upload(key) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/codercompanion/api.rb', line 40 def notify_s3_upload(key) begin RestClient.post("#{config[:host]}/project/notify_project_upload.json", :s3_key => key, :access_key => config[:access_key], :access_id => config[:access_id]) { |response, request, result, &block| return (response.code == STATUS_OK) ? response : nil } rescue return nil end end |