Class: Gitlab::QA::Component::LicenseOps
- Defined in:
- lib/gitlab/qa/component/license_ops.rb
Constant Summary collapse
- LicenseError =
Class.new(StandardError)
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#additional_hosts, #airgapped_network, #docker, #environment, #logger, #name, #network, #network_aliases, #ports, #runner_network, #secrets, #volumes
Instance Method Summary collapse
Methods inherited from Base
#add_network_alias, #hostname, #image, #initialize, #instance, #ip_address, #prepare, #prepare_airgapped_network, #prepare_docker_container, #prepare_docker_image, #prepare_network, #prepare_runner_network, #process_exec_commands, #pull, #restart, #start, #start_instance, #tag, #teardown, #teardown!
Methods included from Scenario::Actable
Constructor Details
This class inherits a constructor from Gitlab::QA::Component::Base
Instance Method Details
#add_license(gitlab) ⇒ Object
10 11 12 13 14 |
# File 'lib/gitlab/qa/component/license_ops.rb', line 10 def add_license(gitlab) license_key = fetch_license_key command = build_license_command(license_key) apply_license(gitlab, command, license_key) end |