lib/krane/cli/restart_command.rb in kubernetes-deploy-0.30.0 vs lib/krane/cli/restart_command.rb in kubernetes-deploy-0.31.0
- old
+ new
@@ -14,15 +14,15 @@
"verify-result" => { type: :boolean, default: true,
desc: "Verify workloads correctly restarted" },
}
def self.from_options(namespace, context, options)
- require 'kubernetes-deploy/restart_task'
- selector = KubernetesDeploy::LabelSelector.parse(options[:selector]) if options[:selector]
- restart = KubernetesDeploy::RestartTask.new(
+ require 'krane/restart_task'
+ selector = ::Krane::LabelSelector.parse(options[:selector]) if options[:selector]
+ restart = ::Krane::RestartTask.new(
namespace: namespace,
context: context,
- max_watch_seconds: KubernetesDeploy::DurationParser.new(options["global-timeout"]).parse!.to_i,
+ max_watch_seconds: ::Krane::DurationParser.new(options["global-timeout"]).parse!.to_i,
)
restart.run!(
options[:deployments],
selector: selector,
verify_result: options["verify-result"]