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

Version Path
pansophy-1.3.0 lib/pansophy/remote/read_directory.rb
pansophy-1.2.0 lib/pansophy/remote/read_directory.rb
pansophy-1.1.0 lib/pansophy/remote/read_directory.rb
pansophy-1.0.0 lib/pansophy/remote/read_directory.rb
pansophy-1.0.0.pre.alpha.0 lib/pansophy/remote/read_directory.rb
pansophy-0.6.0 lib/pansophy/remote/read_directory.rb
pansophy-0.5.6 lib/pansophy/remote/read_directory.rb
pansophy-0.5.5 lib/pansophy/remote/read_directory.rb
pansophy-0.5.4 lib/pansophy/remote/read_directory.rb
pansophy-0.5.3 lib/pansophy/remote/read_directory.rb
pansophy-0.5.2 lib/pansophy/remote/read_directory.rb
pansophy-0.5.1 lib/pansophy/remote/read_directory.rb
pansophy-0.5.0 lib/pansophy/remote/read_directory.rb
pansophy-0.4.0 lib/pansophy/remote/read_directory.rb
pansophy-0.3.0 lib/pansophy/remote/read_directory.rb
pansophy-0.2.6 lib/pansophy/remote/read_directory.rb
pansophy-0.2.5 lib/pansophy/remote/read_directory.rb
pansophy-0.2.4 lib/pansophy/remote/read_directory.rb
pansophy-0.2.3 lib/pansophy/remote/read_directory.rb
pansophy-0.2.1 lib/pansophy/remote/read_directory.rb