class Duracloud::Commands::StoreContent
Public Instance Methods
call()
click to toggle source
# File lib/duracloud/commands/store_content.rb, line 4 def call File.open(infile, "rb") do |body| Duracloud::Content.create(space_id: space_id, store_id: store_id, content_id: content_id, body: body, md5: md5, content_type: content_type) end end