Class: Duracloud::Commands::FindMissingItems
- Defined in:
- lib/duracloud/commands/find_missing_items.rb
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/duracloud/commands/find_missing_items.rb', line 4 def call CSV.instance($stdout, headers: false) do |csv| CSV.foreach(infile, headers: false) do |row| unless Duracloud::Content.exist?(space_id: space_id, store_id: store_id, content_id: row[0], md5: row[1]) csv << row end end end end |