Sha256: 9a9afba1b3d56f65ed3cc0b53c6ce59c06d1cde545201f6b222e39d41f2438c8
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
module Duracloud::Commands class Sync < Command def call if infile File.open(infile, "rb") do |f| self.content_id ||= infile # XXX relativize to cwd? Duracloud::Content.create(space_id: space_id, store_id: store_id, content_id: content_id, md5: md5, body: f) end else Duracloud::Content.create(space_id: space_id, store_id: store_id, content_id: content_id, md5: md5, body: $stdin) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems