Class: Orchparty::Services::Label
- Defined in:
- lib/orchparty/kubernetes_application.rb
Instance Attribute Summary
Attributes inherited from Context
#app_config, #cluster_name, #dir_path, #namespace, #options, #service
Instance Method Summary collapse
Methods inherited from Context
#initialize, #install, #template, #upgrade
Methods included from Minfra::Cli::Logging
#debug, #deprecated, #error, #exit_error, #info, #warn
Constructor Details
This class inherits a constructor from Orchparty::Services::Context
Instance Method Details
#install_cmd ⇒ Object
155 156 157 |
# File 'lib/orchparty/kubernetes_application.rb', line 155 def install_cmd Minfra::Cli::KubeCtlRunner.new("label --namespace #{namespace} --context #{cluster_name} --overwrite #{service[:resource]} #{service[:name]} #{service['value']}") end |
#print_install ⇒ Object
141 142 143 144 |
# File 'lib/orchparty/kubernetes_application.rb', line 141 def print_install @out_io.puts '---' @out_io.puts install_cmd end |
#print_upgrade ⇒ Object
146 147 148 149 |
# File 'lib/orchparty/kubernetes_application.rb', line 146 def print_upgrade @out_io.puts '---' @out_io.puts upgrade_cmd end |
#upgrade_cmd ⇒ Object
151 152 153 |
# File 'lib/orchparty/kubernetes_application.rb', line 151 def upgrade_cmd install_cmd end |