Class: Gitlab::Kubernetes::Helm::InstallCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Gitlab::Kubernetes::Helm::InstallCommand
- Includes:
- ClientCommand
- Defined in:
- lib/gitlab/kubernetes/helm/install_command.rb
Instance Attribute Summary collapse
-
#chart ⇒ Object
readonly
Returns the value of attribute chart.
-
#postinstall ⇒ Object
readonly
Returns the value of attribute postinstall.
-
#preinstall ⇒ Object
readonly
Returns the value of attribute preinstall.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from BaseCommand
Instance Method Summary collapse
- #generate_script ⇒ Object
-
#initialize(chart:, version: nil, repository: nil, preinstall: nil, postinstall: nil, **args) ⇒ InstallCommand
constructor
A new instance of InstallCommand.
Methods included from ClientCommand
#init_command, #repository_command
Methods inherited from BaseCommand
#cluster_role_binding_resource, #config_map_resource, #file_names, #pod_name, #pod_resource, #rbac?, #service_account_resource
Constructor Details
#initialize(chart:, version: nil, repository: nil, preinstall: nil, postinstall: nil, **args) ⇒ InstallCommand
Returns a new instance of InstallCommand.
12 13 14 15 16 17 18 19 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 12 def initialize(chart:, version: nil, repository: nil, preinstall: nil, postinstall: nil, **args) super(**args) @chart = chart @version = version @repository = repository @preinstall = preinstall @postinstall = postinstall end |
Instance Attribute Details
#chart ⇒ Object (readonly)
Returns the value of attribute chart
9 10 11 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 9 def chart @chart end |
#postinstall ⇒ Object (readonly)
Returns the value of attribute postinstall
9 10 11 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 9 def postinstall @postinstall end |
#preinstall ⇒ Object (readonly)
Returns the value of attribute preinstall
9 10 11 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 9 def preinstall @preinstall end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository
9 10 11 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 9 def repository @repository end |
#version ⇒ Object
Returns the value of attribute version
10 11 12 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 10 def version @version end |
Instance Method Details
#generate_script ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/gitlab/kubernetes/helm/install_command.rb', line 21 def generate_script super + [ init_command, repository_command, repository_update_command, preinstall, install_command, postinstall ].compact.join("\n") end |