Sha256: 8b1a056eb4e6305c390cb80806c5a3bd4739124695a537eefc9a473db6fdd6fe
Contents?: true
Size: 434 Bytes
Versions: 22
Compression:
Stored size: 434 Bytes
Contents
module Pansophy module Remote class ReadDirectory include Adamantium::Flat def initialize(bucket, path) @bucket = bucket @pathname = Pathname.new(path) end def call Pansophy.connection.directories.get(@bucket, prefix: @pathname.to_s).tap do |directory| fail ArgumentError, "Could not find bucket #{@bucket}" if directory.nil? end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems