Class: Orchparty::Services::Apply
- Defined in:
- lib/orchparty/kubernetes_application.rb
Instance Attribute Summary
Attributes inherited from Context
#app_config, #cluster_name, #dir_path, #namespace
Instance Method Summary collapse
- #install_cmd(apply, fix_file_path = nil) ⇒ Object
- #upgrade_cmd(apply, fix_file_path = nil) ⇒ Object
- #value_path(apply) ⇒ Object
Methods inherited from Context
#initialize, #install, #print_install, #print_upgrade, #template, #upgrade
Constructor Details
This class inherits a constructor from Orchparty::Services::Context
Instance Method Details
#install_cmd(apply, fix_file_path = nil) ⇒ Object
92 93 94 |
# File 'lib/orchparty/kubernetes_application.rb', line 92 def install_cmd(apply, fix_file_path = nil) "kubectl apply --namespace #{namespace} --context #{cluster_name} #{template(value_path(apply), apply, fix_file_path: fix_file_path)}" end |
#upgrade_cmd(apply, fix_file_path = nil) ⇒ Object
88 89 90 |
# File 'lib/orchparty/kubernetes_application.rb', line 88 def upgrade_cmd(apply, fix_file_path = nil) "kubectl apply --namespace #{namespace} --context #{cluster_name} #{template(value_path(apply), apply, fix_file_path: fix_file_path)}" end |
#value_path(apply) ⇒ Object
84 85 86 |
# File 'lib/orchparty/kubernetes_application.rb', line 84 def value_path(apply) apply[:name] end |