class Krane::CLI::RestartCommand
Constants
- DEFAULT_RESTART_TIMEOUT
- OPTIONS
Public Class Methods
from_options(namespace, context, options)
click to toggle source
# File lib/krane/cli/restart_command.rb, line 18 def self.from_options(namespace, context, options) require 'krane/restart_task' selector = ::Krane::LabelSelector.parse(options[:selector]) if options[:selector] restart = ::Krane::RestartTask.new( namespace: namespace, context: context, max_watch_seconds: ::Krane::DurationParser.new(options["global-timeout"]).parse!.to_i, ) restart.run!( options[:deployments], selector: selector, verify_result: options["verify-result"] ) end