Method: Bosh::Cli::Command::ImportCompiledPackages#perform
- Defined in:
- lib/cli/commands/import_compiled_packages.rb
#perform(exported_tar_path) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cli/commands/import_compiled_packages.rb', line 7 def perform(exported_tar_path) auth_required unless File.exist?(exported_tar_path) raise Bosh::Cli::CliError, 'Archive does not exist' end client = Bosh::Cli::Client::CompiledPackagesClient.new(director) status, task_id = client.import(exported_tar_path) task_report(status, task_id) end |