Class: Rhea::Kubernetes::Commands::Scale
- Defined in:
- lib/rhea/kubernetes/commands/scale.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command_attributes) ⇒ Scale
constructor
A new instance of Scale.
- #perform ⇒ Object
Constructor Details
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
5 6 7 |
# File 'lib/rhea/kubernetes/commands/scale.rb', line 5 def command @command end |
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/rhea/kubernetes/commands/scale.rb', line 11 def perform if is_replication_controller_running? scale_replication_controller else start_replication_controller end end |