class Krane::CLI::GlobalDeployCommand
Constants
- DEFAULT_DEPLOY_TIMEOUT
- OPTIONS
Public Class Methods
from_options(context, options)
click to toggle source
# File lib/krane/cli/global_deploy_command.rb, line 22 def self.from_options(context, options) require 'krane/global_deploy_task' require 'krane/options_helper' require 'krane/label_selector' require 'krane/duration_parser' selector = ::Krane::LabelSelector.parse(options[:selector]) ::Krane::OptionsHelper.with_processed_template_paths(options[:filenames], require_explicit_path: true) do |paths| deploy = ::Krane::GlobalDeployTask.new( context: context, filenames: paths, global_timeout: ::Krane::DurationParser.new(options["global-timeout"]).parse!.to_i, selector: selector, ) deploy.run!( verify_result: options["verify-result"], prune: options[:prune], ) end end