Class: Rhea::Kubernetes::Commands::Delete
- Defined in:
- lib/rhea/kubernetes/commands/delete.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) ⇒ Delete
constructor
A new instance of Delete.
- #perform ⇒ Object
Constructor Details
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
5 6 7 |
# File 'lib/rhea/kubernetes/commands/delete.rb', line 5 def command @command end |
Instance Method Details
#perform ⇒ Object
11 12 13 14 |
# File 'lib/rhea/kubernetes/commands/delete.rb', line 11 def perform # NOTE: Deleting the rc sends a kill signal that doesn't gracefully stop Resque worker processes. api.delete_replication_controller(command.key, NAMESPACE) end |