Class: GitCompound::Repository::RemoteFile::RemoteFileStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/git_compound/repository/remote_file/remote_file_strategy.rb

Overview

Base interface for strategies

Direct Known Subclasses

GitArchiveStrategy, GithubStrategy

Instance Method Summary collapse

Constructor Details

#initialize(source, ref, file) ⇒ RemoteFileStrategy

Returns a new instance of RemoteFileStrategy.



7
8
9
10
11
# File 'lib/git_compound/repository/remote_file/remote_file_strategy.rb', line 7

def initialize(source, ref, file)
  @source = source
  @ref    = ref
  @file   = file
end

Instance Method Details

#contentsObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/git_compound/repository/remote_file/remote_file_strategy.rb', line 13

def contents
  raise NotImplementedError
end

#exists?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/git_compound/repository/remote_file/remote_file_strategy.rb', line 21

def exists?
  raise NotImplementedError
end

#reachable?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/git_compound/repository/remote_file/remote_file_strategy.rb', line 17

def reachable?
  raise NotImplementedError
end