Class: Houcho::OuterRole::CloudForecast
- Inherits:
-
Object
- Object
- Houcho::OuterRole::CloudForecast
- Defined in:
- lib/houcho/outerrole/cloudforecast.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/houcho/outerrole/cloudforecast.rb', line 12 def load cfdir = Houcho::Config::CFYAMLDIR @cfrole = {} Dir::entries(cfdir).each do |file| next if file !~ /\.yaml$/ yaml = "#{cfdir}/#{file}" group = load_group(yaml) cfrole = create_cf_role(yaml, group) merge_cf_role(cfrole) end save_outer_role(@cfrole, "CloudForecast") end |