Class: ProxyTester::RemoteRepository
- Inherits:
-
Object
- Object
- ProxyTester::RemoteRepository
- Defined in:
- lib/proxy_tester/remote_repository.rb
Instance Method Summary collapse
-
#base ⇒ String
source path of repository.
-
#initialize(repository) ⇒ RemoteRepository
constructor
Create Remote Repository.
-
#source ⇒ String
source path of repository.
Constructor Details
#initialize(repository) ⇒ RemoteRepository
Create Remote Repository
12 13 14 |
# File 'lib/proxy_tester/remote_repository.rb', line 12 def initialize(repository) @repository = parse(repository) end |
Instance Method Details
#base ⇒ String
source path of repository
24 25 26 |
# File 'lib/proxy_tester/remote_repository.rb', line 24 def base ::File.basename(repository.path, '.*') end |
#source ⇒ String
source path of repository
32 33 34 |
# File 'lib/proxy_tester/remote_repository.rb', line 32 def source repository.to_s end |