Class: Cuber::Commands::Restart

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/cuber/commands/restart.rb

Instance Method Summary collapse

Methods included from Utils

#kubectl, #kubeget, #render

Constructor Details

#initialize(options) ⇒ Restart

Returns a new instance of Restart.



5
6
7
# File 'lib/cuber/commands/restart.rb', line 5

def initialize options
  @options = options
end

Instance Method Details

#executeObject



9
10
11
# File 'lib/cuber/commands/restart.rb', line 9

def execute
  kubectl 'rollout', 'restart', 'deploy'
end