Class: Avmtrf1::Git::CachedRepository

Inherits:
Avm::Git::Launcher::Base
  • Object
show all
Defined in:
lib/avmtrf1/git/cached_repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ CachedRepository

Returns a new instance of CachedRepository.



10
11
12
13
14
15
16
# File 'lib/avmtrf1/git/cached_repository.rb', line 10

def initialize(url)
  @url = url
  super(local_path)
  init
  assert_remote_url('origin', url)
  system!('fetch', 'origin', '-pPt')
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



8
9
10
# File 'lib/avmtrf1/git/cached_repository.rb', line 8

def url
  @url
end