class JamesBond::KubernetesBuildMission
Constants
- CONFIGURATION_FILE_PATH
- MISSION_MAIN_COMMANDS
- MISSION_NAME
Public Instance Methods
build(config, params)
click to toggle source
# File lib/james_bond/kubernetes_build_mission.rb, line 13 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", "Creates a docker image with the specified tag. If omitted a tag " + \ "like devel-212121 will be generated automaticaly." end end
config_file()
click to toggle source
# File lib/james_bond/kubernetes_build_mission.rb, line 28 def config_file @config_file ||= self.class::Config.new(yaml_path: CONFIGURATION_FILE_PATH) end
run_build_command(command:, mission_pool:)
click to toggle source
# File lib/james_bond/kubernetes_build_mission.rb, line 24 def run_build_command(command:, mission_pool:) self.class::BuildHandler.new(command, config_file).run end