class Krane::CLI::RunCommand
Constants
- DEFAULT_RUN_TIMEOUT
- OPTIONS
Public Class Methods
from_options(namespace, context, options)
click to toggle source
# File lib/krane/cli/run_command.rb, line 36 def self.from_options(namespace, context, options) require "krane/runner_task" runner = ::Krane::RunnerTask.new( namespace: namespace, context: context, global_timeout: ::Krane::DurationParser.new(options["global-timeout"]).parse!.to_i, ) runner.run!( verify_result: options['verify-result'], template: options['template'], command: options['command'], arguments: options['arguments']&.split(" "), env_vars: options['env-vars'].split(','), ) end