Sha256: 4bd28768bb5dac0a0c1fc722fce9d4a6adaf0dddda408b52e2ea2192d3cbbb70

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

module GitCompound
  module Repository
    class RemoteFile
      # Base interface for strategies
      #
      class RemoteFileStrategy
        def initialize(source, ref, file)
          @source = source
          @ref    = ref
          @file   = file
        end

        def contents
          raise NotImplementedError
        end

        def reachable?
          raise NotImplementedError
        end

        def exists?
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.2.1 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.2.0 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.1.2 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.1.1 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.1.0 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.0.10 lib/git_compound/repository/remote_file/remote_file_strategy.rb
git_compound-0.0.9 lib/git_compound/repository/remote_file/remote_file_strategy.rb