Class: Bosh::Cli::ArchiveRepositoryProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/archive_repository_provider.rb

Instance Method Summary collapse

Constructor Details

#initialize(archive_dir, artifacts_dir, blobstore) ⇒ 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