Class: Bosh::Director::Api::CompiledPackageGroupManager
- Includes:
- ApiHelper
- Defined in:
- lib/bosh/director/api/compiled_package_group_manager.rb
Constant Summary
Constants included from ApiHelper
Instance Method Summary collapse
Methods included from ApiHelper
#check_available_disk_space, #json_decode, #json_encode, #send_disposable_file, #start_task, #write_file
Instance Method Details
#create_from_file_path(username, path) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/bosh/director/api/compiled_package_group_manager.rb', line 8 def create_from_file_path(username, path) unless File.exists?(path) raise DirectorError, "Failed to import compiled packages: file not found - #{path}" end JobQueue.new.enqueue(username, Jobs::ImportCompiledPackages, 'import compiled packages', [path]) end |