Class: Bosh::Cli::ArchiveRepositoryProvider
- Defined in:
- lib/cli/archive_repository_provider.rb
Instance Method Summary collapse
- #get(resource) ⇒ Object
-
#initialize(archive_dir, artifacts_dir, blobstore) ⇒ ArchiveRepositoryProvider
constructor
A new instance of ArchiveRepositoryProvider.
Constructor Details
#initialize(archive_dir, artifacts_dir, blobstore) ⇒ ArchiveRepositoryProvider
Returns a new instance of ArchiveRepositoryProvider.
3 4 5 6 7 |
# File 'lib/cli/archive_repository_provider.rb', line 3 def initialize(archive_dir, artifacts_dir, blobstore) @archive_dir = archive_dir @artifacts_dir = artifacts_dir @blobstore = blobstore end |
Instance Method Details
#get(resource) ⇒ Object
9 10 11 |
# File 'lib/cli/archive_repository_provider.rb', line 9 def get(resource) ArchiveRepository.new(@archive_dir, @artifacts_dir, @blobstore, resource) end |