Sha256: a12aa1893b26fcb2a746fe1e271446c358e44bb0f5a1598a1fa7eba3eb69419f

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

module Duracloud::Commands
  class FindMissingItems < Command

    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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
duracloud-client-0.10.2 lib/duracloud/commands/find_missing_items.rb
duracloud-client-0.10.1 lib/duracloud/commands/find_missing_items.rb
duracloud-client-0.10.0 lib/duracloud/commands/find_missing_items.rb
duracloud-client-0.9.1 lib/duracloud/commands/find_missing_items.rb
duracloud-client-0.9.0 lib/duracloud/commands/find_missing_items.rb