Module: KubeclientExec::Copy
- Includes:
- Tar
- Included in:
- KubeclientExec
- Defined in:
- lib/kubeclient_exec/copy/tar.rb,
lib/kubeclient_exec/copy/copy.rb
Defined Under Namespace
Modules: Tar
Constant Summary collapse
- DEFAULT_CP_OPTIONS =
{ container: nil, reverse_direction: false, suppress_errors: true, tls: { cert_chain_file: nil, private_key_file: nil, verify_peer: true } }
Instance Method Summary collapse
Methods included from Tar
Instance Method Details
#cp_pod(local_path, remote_path, name, namespace, options: {}) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/kubeclient_exec/copy/copy.rb', line 20 def cp_pod(local_path, remote_path, name, namespace, options: {}) # Reverse merge with the default options .merge!(Copy::DEFAULT_CP_OPTIONS) { |_, option, _| option } if [:reverse_direction] cp_from_pod(local_path, remote_path, name, namespace, ) else cp_to_pod(local_path, remote_path, name, namespace, ) end end |