class JamesBond::KubernetesServerMission
Constants
- CONFIGURATION_FILE_PATH
- MISSION_MAIN_COMMANDS
- MISSION_NAME
Public Instance Methods
build(config, params)
click to toggle source
# File lib/james_bond/kubernetes_server_mission.rb, line 15 def build(config, params) config.name = MISSION_NAME config.main_commands = MISSION_MAIN_COMMANDS arguments_parser do |parser| parser.banner = "bond #{MISSION_MAIN_COMMANDS[0]} [options]" parser.string "-t", "--tag", "Use this option to specify what image tag to use. " + \ "Remember the image should be accessible to the docker deamon used "+ \ "by Kubernetes. If you are using Minikube run " + \ "`eval $(minikube docker-env)` to share de deamon." parser.separator " " end end
config_file()
click to toggle source
# File lib/james_bond/kubernetes_server_mission.rb, line 34 def config_file @config_file ||= JamesBond::MissionKubernetes::Config.new(yaml_path: CONFIGURATION_FILE_PATH) end
run_server_command(command:)
click to toggle source
# File lib/james_bond/kubernetes_server_mission.rb, line 30 def run_server_command(command:) MissionKubernetes::ServerHandler.new(command, config_file).run end