Sha256: 1a89a2f66db0a2435820480f2fd98a38a20ebf8c67ab6abd3320d49ca779b315
Contents?: true
Size: 460 Bytes
Versions: 13
Compression:
Stored size: 460 Bytes
Contents
require 'yaml' module YAMLConfig def initialize super() end def load_config_by_task_name(task_name) task_config = "#{task_name}.yml" task_config = File.join(Albacore.configure.yaml_config_folder, task_config) unless Albacore.configure.yaml_config_folder.nil? configure(task_config) if File.exists?(task_config) end def configure(yml_file) config = YAML::load(File.open(yml_file)) update_attributes config end end
Version data entries
13 entries across 13 versions & 1 rubygems