class Pec::Handler::Image
Public Class Methods
build(config)
click to toggle source
# File lib/pec/handler/image.rb, line 6 def self.build(config) Pec::Logger.notice "image is #{config.image}" image_id = Yao::Image.list.find {|image| image.name == config.image}.id { imageRef: image_id } rescue raise Pec::ConfigError, "image name=#{config.image} does not exist" end