Class: Clusters::BuildKubernetesNamespaceService
- Inherits:
-
Object
- Object
- Clusters::BuildKubernetesNamespaceService
- Defined in:
- app/services/clusters/build_kubernetes_namespace_service.rb
Instance Attribute Summary collapse
-
#cluster ⇒ Object
readonly
Returns the value of attribute cluster.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(cluster, environment:) ⇒ BuildKubernetesNamespaceService
constructor
A new instance of BuildKubernetesNamespaceService.
Constructor Details
#initialize(cluster, environment:) ⇒ BuildKubernetesNamespaceService
Returns a new instance of BuildKubernetesNamespaceService.
7 8 9 10 |
# File 'app/services/clusters/build_kubernetes_namespace_service.rb', line 7 def initialize(cluster, environment:) @cluster = cluster @environment = environment end |
Instance Attribute Details
#cluster ⇒ Object (readonly)
Returns the value of attribute cluster.
5 6 7 |
# File 'app/services/clusters/build_kubernetes_namespace_service.rb', line 5 def cluster @cluster end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
5 6 7 |
# File 'app/services/clusters/build_kubernetes_namespace_service.rb', line 5 def environment @environment end |
Instance Method Details
#execute ⇒ Object
12 13 14 |
# File 'app/services/clusters/build_kubernetes_namespace_service.rb', line 12 def execute cluster.kubernetes_namespaces.build(attributes) end |