Class: Pec::Handler::Flavor
- Inherits:
-
Object
- Object
- Pec::Handler::Flavor
show all
- Extended by:
- Core
- Defined in:
- lib/pec/handler/flavor.rb
Instance Attribute Summary
Attributes included from Core
#kind
Class Method Summary
collapse
Methods included from Core
build, post_build, recover
Class Method Details
.build(config) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/pec/handler/flavor.rb', line 6
def self.build(config)
Pec::Logger.notice "flavor is #{config.flavor}"
flavor_id = Yao::Flavor.list.find {|flavor| flavor.name == config.flavor}.id
{
flavorRef: flavor_id
}
rescue
raise Pec::ConfigError, "flavor name=#{config.flavor} does not exist"
end
|