Class: Avmtrf1::Git::CachedRepository
- Inherits:
-
Avm::Git::Launcher::Base
- Object
- Avm::Git::Launcher::Base
- Avmtrf1::Git::CachedRepository
- Defined in:
- lib/avmtrf1/git/cached_repository.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ CachedRepository
constructor
A new instance of CachedRepository.
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
#url ⇒ Object (readonly)
Returns the value of attribute url.
8 9 10 |
# File 'lib/avmtrf1/git/cached_repository.rb', line 8 def url @url end |