Sha256: 075b3a732091b8101d4f6226a63781e398edafc1285c72fa95b86106175f023e
Contents?: true
Size: 445 Bytes
Versions: 5
Compression:
Stored size: 445 Bytes
Contents
module Kite::Helpers # Check config/cloud.yml file to be complete def check_cloud_config(config) raise Kite::Error, 'The config/cloud.yml is not filled out!' unless config.find { |key, hash| hash.find { |k, v| v.nil? } }.nil? end # Parse config/cloud.yml, returning the output hash def parse_cloud_config cloud_config = YAML.load(File.read('config/cloud.yml')) check_cloud_config(cloud_config) cloud_config end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
kite-1.0.6 | lib/kite/helpers.rb |
kite-1.0.4 | lib/kite/helpers.rb |
kite-1.0.2 | lib/kite/helpers.rb |
kite-1.0.1 | lib/kite/helpers.rb |
kite-1.0.0 | lib/kite/helpers.rb |