Class: Git::StreamFileCopy

Inherits:
Object
  • Object
show all
Defined in:
lib/git/stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository_path_from, repository_path_to) ⇒ StreamFileCopy

Returns a new instance of StreamFileCopy.



115
116
117
118
# File 'lib/git/stream.rb', line 115

def initialize(repository_path_from, repository_path_to)
  @repository_path_from = repository_path_from
  @repository_path_to = repository_path_to
end

Instance Attribute Details

#repository_path_fromObject

Returns the value of attribute repository_path_from.



113
114
115
# File 'lib/git/stream.rb', line 113

def repository_path_from
  @repository_path_from
end

#repository_path_toObject

Returns the value of attribute repository_path_to.



113
114
115
# File 'lib/git/stream.rb', line 113

def repository_path_to
  @repository_path_to
end

Instance Method Details

#to_sObject



120
121
122
# File 'lib/git/stream.rb', line 120

def to_s
  "C #{repository_path_from} #{repository_path_to}\n"
end